metastream icon indicating copy to clipboard operation
metastream copied to clipboard

Prototype chromecast sync support

Open arseneyr opened this issue 6 years ago • 1 comments

I have a prototype change that allows Metastream to keep chromecast-ed videos in sync. The branch is here:

https://github.com/arseneyr/metastream/tree/chromecast

I think the scenario here is that Metastream's sync and chat features are great but I wish I could watch the video on a larger screen. This change allows a chromecast session that starts during interact mode to be kept synchronized. It does this by proxying the cast sender API and waiting for media to be loaded. If that happens, it replaces the existing player variable with a class that implements most of your custom HTMLMediaPlayer API (great decoupling BTW) using the cast API.

So far I've tried it with Plex and YouTube. The sync isn't perfect because seeking, pause, resume, etc. take longer for casted media but it usually works within 5 seconds or so. Let me know if you'd be interested in a PR.

arseneyr avatar Apr 01 '20 08:04 arseneyr

+1 to this feature!

livni avatar Dec 01 '20 17:12 livni