pranav-prakash/RokuCast

YouTube Support

Closed this issue · 3 comments

is this supposed to work with all rokus? didn't work with roku express

Yeah it should — What's the video you're trying to cast? What happens when you try to do so?

rokucast
When I hover over the cast icon in the extension, and click on it, nothing happens...

Ah, YouTube is one site that doesn't work well with this extension. I should probably update the readme with this.

See
#8
#11

for more detailed technical information if you wish but the gist of it is that

Google changed the playback method so that it no longer directly accesses the mp4 in the video element — rather, it now plays it one chuck at a time from a segment of the video stored locally in memory, and the video element points to a MediaSource object instead of an mp4.

One workaround is to use a user agent switcher like so:

Youtube to Roku Player, I recommend you use the extension User-Agent Switcher for Chrome. In Options => Permanent Spoof List => adds Youtube.com as a domain and iPhone 6 as user agent string

But this adds a bit of inconvenience since it will be formatted for mobile. Alternatively, YouTube has its own cast functionality where you just need to install the corresponding YouTube app on the roku player.