MPDN_Extensions
MPDN_Extensions copied to clipboard
[Playlist] Support URLs and YouTube playlists
Now that MPDN Extensions supports youtube playback, it would be nice if the playlist supports youtube playlists too.
That Youtube Source Filter is pretty nice. Is it possible to read out data from the filter such as the name?
I asked the dev that same question but alas it wasn't possible. The only answer he gave was to get it from YouTube API, which isn't very useful considering there are many more sites the filter support. At this stage, we think should really just add the URL to the playlist.
FWIW you can do it using youtube-dl. But then you need to do everything through the command line, which isn't ideal.
Another possibility would be to open the webpage and download the title.
At this stage, we think should really just add the URL to the playlist.
Well it's all working in my playlist branch. I'll probably have to do some slight tweaking to the url validation part though.
Another possibility would be to open the webpage and download the title.
Yeah, I'll just try to parse the title from the page and see how it'll go, e.g. whether it's compatible with all the available websites.
I'll have a play with the youtube-dl branch too. I actually tried it but saw that it wants to download the whole thing before it starts to play. It'd be really nice if we could start playback when some data (of whatever size) is downloaded (a point you already mentioned as an improvement).
MPDN v2.44.0 started supporting pipe in via std::in -- that's the only streaming method youtube-dl supports unfortunately and it isn't very flexible (i.e. must be started via commandline, and doesn't support seeking).
I think it's sufficient to parse the title from the webpage for now.
FWIW I'm trying to add a new function to the next API version to allow the playlist to preload a media file in the background while the current one is being played. This way once the playback finishes, the next one can start immediately. It might be a more useful feature to concentrate our efforts instead.
FWIW it is possible to make youtube-dl return a url, but not in a way that MPDN supports (it's not a direct link). Haven't figured out how to make that work yet.