MPDN_Extensions icon indicating copy to clipboard operation
MPDN_Extensions copied to clipboard

[Playlist] Support URLs and YouTube playlists

Open zachsaw opened this issue 9 years ago • 6 comments

Now that MPDN Extensions supports youtube playback, it would be nice if the playlist supports youtube playlists too.

zachsaw avatar Sep 23 '15 03:09 zachsaw

That Youtube Source Filter is pretty nice. Is it possible to read out data from the filter such as the name?

Garteal avatar Sep 26 '15 20:09 Garteal

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.

zachsaw avatar Sep 30 '15 03:09 zachsaw

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.

Shiandow avatar Sep 30 '15 08:09 Shiandow

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).

Garteal avatar Sep 30 '15 19:09 Garteal

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.

zachsaw avatar Oct 01 '15 01:10 zachsaw

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.

Shiandow avatar Oct 01 '15 01:10 Shiandow