[Discussion] Auto Play next Episode
Hi! What are the thoughts on implementing auto-play for the next episode? Seems like something that could be really cool to implement, but what restrictions could we face with this?
Good question @ShashankRaghuraj - currently, the vidsrc[dot]me/api provider is the only one with native param support for this on a request level.
We see that here:
https://vidsrc.xyz/embed/tv?imdb=tt0944947&&autoplay=1&autonext=1
And their docs state:
Valid parameters:
imdb or tmdb required - from imdb.com or themoviedb.com
sub_url optional - Url encoded .srt or .vtt url. Must have CORS enabled to the URL.
ds_lang optional - Default subtitle language, ISO639 Language code.
autoplay optional - 1 or 0. Enable or Disable autoplay. (Enabled default)
The real tough part is bringing it to all providers (One eleven movies, Super InBed, etc)
Since our implementation doesn't actually control their iframe players, we can’t directly inject logic like listening for ended events or programmatically queuing the next episode. It gets blocked by cross-origin restrictions they enlist on the resources. That said, I definitely think there's stuff we can do to get around it.
Our sole option is basically this (if we want to realistically support this capability):
- Extract the raw video URL (like
.m3u8) and pipe it into NyumatFlix's own
This is hard for obvious reasons, but also flaky. Extracting/scraping anything is generally pretty finicky, and this would also make NyumatFlix beholden to a single entity. Which by currently just being an aggregator, is not the case.
I don't know, what's your thoughts on this? Should we make a seperate instance of NyumatFlix, or bake that infrastructure in, to support these workflows? From a UX point-of-view, I do think it's a fantastic idea, but also think it would require more engineering effort. I'm open to ideas 💡