Google Cast SDK RemoteMediaPlayer web video casting e.g. YouTube

i am new to the google cast development. Currently i've successfully developed an app that can cast online media (e.g. this mp3) by using the RemoteMediaPlayer class.

Now i have tried to cast an YouTube video (this video) by using the same technique but it won't start casting. The callback of GoogleApiClient.load() says that the operation was not successful.

So, is it possible to cast a YouTube video (or another streaming platform videos such as vimeo) by using the RemoteMediaPlayer class?


You need to have a link to the media, and media should be in one of the formats that is payable on Chromecast (see our documentation for accepted formats). Otherwise you will not be possible. For YouTube specifically, you don't have access to the mp4 files (at least not through YouTube APIs) so you cannot play a YT content in your app's receiver; some have tried using the embedded iframe but it is not always successful and it is limited.

Need Your Help

C: Storing up to a million entries in a hash table

c optimization performance hashmap hashtable

I'm working on a project where efficiency is crucial. A hash table would be very helpful since I need to easily look up the memory address of a node based on a key. The only problem I foresee is this

Pause/Stop an embedded YouTube video with an onclick event?

javascript jquery html css youtube

I'm building a small video gallery where each video has an icon. When clicked it opens up a lightbox with an embedded YouTube iframe in it. The lightbox also has an X in the upper right corner to c...