Select video using web interface

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
MSemz
New Cone
New Cone
Posts: 1
Joined: 22 Apr 2022 22:22

Select video using web interface

Postby MSemz » 22 Apr 2022 22:27

I tried to play and pause VLC from browser using 127.0.0.1/requests/status.xml?command=pl_play
and it works fine
I wanted to change the running video using ?command=pl_play&id=0 and id=1 and id = 2, all of them running the same video which is the first one in the playlist

So How to select which video in playlist to play ?

jackspm
Blank Cone
Blank Cone
Posts: 14
Joined: 10 Apr 2020 00:05

Re: Select video using web interface

Postby jackspm » 21 Jun 2022 17:20

You need to know the id of the track on the playlist.
using 127.0.0.1/requests/playlist.xml will list your playlist along with their corresponding id.
then using 127.0.0.1/requests/status.xml?command=pl_play&id=x, where x is the id number.
hope this help.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests