pranav-prakash / RokuCast

Cast videos from chrome to roku
180 stars 39 forks source link

YouTube Support #14

Closed sastani closed 7 years ago

sastani commented 7 years ago

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

pranav-prakash commented 7 years ago

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

sastani commented 7 years ago

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

pranav-prakash commented 7 years ago

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

See https://github.com/pranav-prakash/RokuCast/issues/8 https://github.com/pranav-prakash/RokuCast/issues/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.