howardchung / watchparty

Watch anything together in-sync with your friends
https://www.watchparty.me
MIT License
743 stars 137 forks source link

/create route additional params #858

Open CodeF53 opened 7 months ago

CodeF53 commented 7 months ago

I would like to be able use the /create?video=... route with a couple of extra parameters to improve user experience:

  1. &subtitles= I was thinking this would take a json format
    {
    "en-us": "https://.../eng.vtt",
    "es": "https://.../spa-7.vtt"
    }
  2. &title= Simply so the "search by title" option for subtitles works with parties started this way
  3. &poster= an image to pass to the <video poster="..."> attribute (shows while video is downloading)

Full example url

https://www.watchparty.me/create
  ?video=https://.../playlist.m3u8
  &title="EXAMPLE TITLE"
  &subtitles={"en-us":"https://.../eng.vtt","es":"https://.../spa-7.vtt"}
  &poster=https://.../poster.jpg
howardchung commented 7 months ago

I don't think we currently have support for multiple subtitle tracks, but everything else sounds good!

CodeF53 commented 7 months ago

I'm fine just passing in a single subtitle track if it would be difficult to implement support for multiple tracks

asakura42 commented 2 months ago

&title= Simply so the "search by title" option for subtitles works with parties started this way

Nice idea. Definitely must-have.