RokuCast icon indicating copy to clipboard operation
RokuCast copied to clipboard

AutoPlay option - enhancement

Open jtsimikas opened this issue 8 years ago • 4 comments

Is there any chance of adding an Auto-Play option.

So basically the app would detect the main video url on the page and cast it automatically.

When the website reloads the page with a new video, RokuCast would be have a timer of some kind to constantly check to see if the main video URL has changed.

If the video URL has changed then automatically cast the new URL video.

jtsimikas avatar Aug 18 '17 15:08 jtsimikas

Interesting idea. It should be simple to add (just add a callback for chrome.tabs.onUpdated) but could you elaborate a bit more on the use case? I also don't have a Roku with me anymore so it might be a bit hard to test out any changes.

pranav-prakash avatar Aug 19 '17 19:08 pranav-prakash

The use -case is for sites that let you build "playlists" of multiple videos (ex. Youtube) and other similar sites as well. Currently Roku Cast will only play the current video.  It would be nice if could also play the rest of the videos in the playlist so the user does not have to manually intervene. For example, let's say I had some music videos in a playlist.  I would like to only cast to Roku "one" time.

jtsimikas avatar Aug 19 '17 23:08 jtsimikas

Ah I see. Yeah that would definitely be handy. I don't have much time to work on it now but if you know a bit of JS the quickest way to accomplish this would be to mark fullapp.js as a background page and always inject libvget.js when the chrome tab is updated.

pranav-prakash avatar Aug 20 '17 02:08 pranav-prakash

Ok.  If i find some time I'll see if I can make the changes based on your suggestions. Take care.

jtsimikas avatar Aug 20 '17 13:08 jtsimikas