Cast vimeo video with Android - android-mediaplayer

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?

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.

Youtube Java live stream

I am using Youtube provided API for live steam, I am able to run the live stream example provided by youtube, but i didn't find any option in the example to cast my local video,
Does any one know how to cast local video on youtube live?

Direct link for vimeo video

I'm developing a Windows Phone App and I want to play Vimeo video in the App. But I have an issue, Windows Phone Apps can't embed player, so player will open in browser. I don't like that it opens external app, I would like that users stay in my app.
How can I get direct link for playing Vimeo video in my own video player?
I got email from Vimeo support.
Quote:
You’ll need to become a PRO member if you’d like access to static video URLs on both the site and via our API.
Vimeo PRO FAQ: http://bit.ly/18Y8s6f

How to play my own server videos with vimeo player without uploading?

I would like to play my own server video files (any type video) using vimeo player.
Is that possible. If I put a video URL, for ex: "http://www.myownserver.com/videos/test.mp4", I want to play this video on vimeo player.
In a single word, my video files requires a vimeo player and its features.

Youtube video won't load into webView

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.