pranav-prakash / RokuCast

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

AutoPlay option - enhancement #28

Open jtsimikas opened 6 years ago

jtsimikas commented 6 years ago

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.

pranav-prakash commented 6 years ago

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.

jtsimikas commented 6 years ago

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.

pranav-prakash commented 6 years ago

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.

jtsimikas commented 6 years ago

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