j-holub / Node-MPV

A NodeJs Module for MPV Player
https://www.npmjs.com/package/node-mpv
MIT License
116 stars 73 forks source link

[Question] how to use the loadPlaylist() api? #56

Closed sir-kain closed 4 years ago

sir-kain commented 5 years ago

The definition of this function is loadPlaylist (playlist, mode="replace")

I need to know the type of the "playlist" parameter

AxelTerizaki commented 5 years ago

If I follow the code here playlist is a playlist file. You should check mpv's manual to see what kind of playlist file it expects.

sir-kain commented 5 years ago

Awesome it works with filepath as the "playlist" parameter like await mpv.loadPlaylist("src/ply.txt");

src/ply.txt is my file with list of streams

https://cdns-preview-5.dzcdn.net/stream/c-50543900d3d62a3eb5882407d66acd71-5.mp3
https://cdns-preview-d.dzcdn.net/stream/c-d28ee67c24d60e740866c7709d772f55-10.mp3
j-holub commented 4 years ago

It seems as if everything's fine here and I can close this issue, right?