Youtube video won't load into webView - objective-c

I am trying to load my video into a webview.
When I use this link. It won't work.
http://www.youtube.com/v/066PWBKrh6k&autoplay=1
But when I try this link. It's the same video but the link is a little bit different. It won't work. Any idea what the problem can be?
http://www.youtube.com/watch?v=066PWBKrh6k&autoplay=1
Kind regards.

You are linking to a flash file. IOS wont play flash. the /v/id path links to a swf for clarification, while the watch link is something IOS might have a handler for to accept standard youtube links but play them in the youtube app. What you really want is a straight url to a mp4 file / h264 which ios will happily play in it's media controls. Youtube will not give you this because the video isn't branded, the branding is an overlay of their flash / html5 player. Your best bet is to use the actual youtube javascript api to embed a html5 player, or at least something compatible with IOS. Or just link to an address IOS has a registered handler for.

Related

How to give download option in vimeo player in reactnative?

So I am designing an reactnative app where I need to embed vimeo video player.
Can I give my users an option to download the video for offline mode ?
How can I restrict the downloaded file in app itself like netflix does?
Is that possible? PLease guide.

Agora SDK compatibility with Safari - both macos and ios

I am building a PWA with Agora broadcasting API. I managed to get the video stream playing on desktop Chrome, but not on Safari. The documentation says Safari is supported on both MacOS and iOS, but it doesn't seem like the case.
When I opened the client page on Safari, instead of playing the video stream, it just create a video player without content. I don't see any data being streamed in the inspector view, or there isn't any activity going on at all.
Do I need to do something different with Safari?
Agora.io provided an auto-diagnostic page for their Web SDK, which may be useful for you:
agora_webrtc_troubleshooting

Cast vimeo video with Android

I'm developing an app which gets the videos from Vimeo.
How can I cast the video on Miracast/Chromecast?
I'm using the media player.
Thanks.
In order to cast videos from Vimeo, you will need the MP4 links; you would be able to construct MediaInfo objects with these video file links for use with the Cast Companion Library or directly with the Cast SDK. Vimeo provides PRO users with MP4 links to their own videos. See Video File in the Vimeo Java/Android networking library for more info on what you would use to construct the MediaInfo objects.
You could also deeplink into the Vimeo Android App, have it play your video, and at that point users can use the cast button on the Vimeo player to cast the video. Check out the official Vimeo deeplink helper library.
Im getting a error when I cast the vimeo video to my TV.
Im using the account pro, owner of the video.
This is my url http://player.vimeo.com/external/161670290.hd.mp4?s=9f861403dd0f...c034bfde2dae2&profile_id=119&oauth2_token_id=42...082
My tv said that the file type isnt valid.
Checking with other video types, with hls I get the error invalid audio codec.
Im using LG WEBOS with connect sdk, its working with a normal mp4 like http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4
Whats the problem?

mediaelement.js & Dropbox video link

I was looking for a plugin that could play both audio and video files and was happy to come across mediaelement.js. I host all of my audio and video from Dropbox. The audio is playing fine but the video does not, just hangs on the loading screen.
I saw another thread posted here with no response. Below is the shortcode I'm using:
[video src="https://www.dropbox.com/s/udprb5o5p3n6uu8/WCN.mp4" width="242" height="136" poster="http://wellsmartsolutions.com/video/video.png"]
Not other plugins are active that would be causing any conflict. What am I doing wrong?
Try this URL instead: https://dl.dropboxusercontent.com/s/udprb5o5p3n6uu8/WCN.mp4. I've changed the domain to dl.dropboxusercontent.com per https://www.dropbox.com/help/201. This links directly to the video rather than a web page that previews the video.

Ooyala HTML5 Player

Maybe I'm missing something, but hopefully someone here knows better than I...
I'm trying to install Ooyala's video player using their HTML5 API. However, in their HTML5 demo, there's no HTML5 to be found, just a flash player (as in the rest of their examples). Do they not actually have an HTML5 API, or am I doing something wrong? I was expecting video to be dropped in via a <video> tag or object embed or anything other than Flash.
Ooyala has recently upgraded to V3, also they have deprecated AS3 API. V3 supports flash video with HTML5 fallback. Also you can set HTML5 option by default as shown in example below. It's shame they haven't done HTML5 with flash fallback.
You can specify HTML5 platform as shown below. If you don't specify anything, flash version will be used by default with HTML5 fallback.
<script src='http://player.ooyala.com/v3/MzZiMzc1ZDUzZGVlYmMxNzA3Y2MzNjBk?platform=html5'></script>
This demo uses HTML5 version:
http://demo.ooyala.com/product-demos/OOview_Win8/OOView/player.html
More implementation information can be found here:
http://support.ooyala.com/developers/documentation/reference/player_v3_dev_embedplayer.html
The Ooyala Player will use html5 only if it detects that the user is on an iOS device. To test on the Desktop, use Safari. Select Develop -> User Agent -> (Any iOS Device), then open the link.
I am not entirely sure about this. However, I think that Ooyala did not launch HTML5 API yet. As far as I know, Brightcove just launched a Limited Availability of the HTML5 API, and I was under the impression that this was a step ahead in the HTML5 video market.