VLM on Raspberry Pi - only few commands

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

VLM on Raspberry Pi - only few commands

Postby franc » 11 Mar 2019 17:26

Hallo

I have setup a Raspberry Pi 3 B+ to watch videos with it with VLC-Player 3.0.6 Vetinary on Raspbian Stretch OS.

Now I need a remote control for it and I found VLC media player web interface - VLM.
But there are only few controls, I miss a lot.

I tried to use the "VLC Graphite Web Interface Theme v1.0" but my problem starts that I dont find any html-folder as described in the VLC Graphite ReadMe.

So now I have questions:

- how can I change the VLM-Theme on Linux (Debian Stretch)?
- is it possible to use the VLC-command for Position (default Keyboard Shortcut: P), to show the time's position in the video?

Thanks.

frank

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 11 Mar 2019 20:51

OK, I found the html folder, its in:

/usr/share/vlc/lua/http/

but the VLC Graphite Web Interface is not working properly. Somebody knows a good tutorial to understand this VLM?

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 12 Mar 2019 12:43

If I only new, how to add these 3 elements:

1. jump short back
2. jump short forward
3. show time position (default keyboard shortcut is "P")

In the VLM-commands I cannot find anything about that.
In the html code I find a lot of "<?vlc ... > special tags, I don't know what kind of interpreter does work these tags out.

Found the page Hacker Guide/VLM Internals, downloaded the source of vlc but neither helps to understand.

All mistery for me and no documentation which explains that.
Last edited by franc on 12 Mar 2019 15:20, edited 1 time in total.

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 12 Mar 2019 15:18

At least I found something. In:

/usr/share/vlc/lua/http/requests/README.txt

there is a bunch of commands via request, to control the player. E.g.

http://192.168.0.160:8080/requests/brow ... d=pl_pause
(I ommit now the "http://192.168.0.160:8080" because then the post would contain illigal ammount of urls, not allowed in this forum)
/requests/browse.xml?command=pl_forcepause
/requests/browse.xml?command=pl_forceresume
/requests/browse.xml?command=pl_stop

to pause/play, force pause, force resume and stop the running player. That works at least. 192.168.0.160 is the local IP of my Rasp, where the vlc is running. Or subtitle delay:

/requests/browse.xml??command=subdelay&val=<delayinseconds>
e.g.:
/requests/browse.xml?command=subdelay&val=-15
/requests/browse.xml?command=subdelay&val=6

or audio delay:
/requests/browse.xml??command=audiodelay&val=<delayinseconds>
e.g.:
/requests/browse.xml??command=audiodelay&val=0.5

Or jump:
/requests/browse.xml?command=seek&val=<val>
e.g. jump 1 minute forward:
/requests/browse.xml?command=seek&val=+1M
or jump to the 10th minute:
/requests/browse.xml?command=seek&val=600

which is already handy :)

But I still don't find the time position (show it on the screen).
I continue my search...

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 12 Mar 2019 20:54

By the way, this is the content of the README.txt (in Pastebin, here I cannot post as much characters).
from the Mac where it is in:
/Applications/VLC.app/Contents/MacOS/share/lua/http/requests/README.txt

I still don't understand why it is e.g.:
/requests/browse.xml?command=seek&val=+1M
and not:
/requests/status.xml?command=seek&val=+1M
because the commands (in the example: seek) are listet not underneath browse.xml but under status.xml.
But it is not working with status.xml but works with browse.xml

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 12 Mar 2019 21:05

I can add a Task in Tasker (Android-App) with a HTTP Get (in the "Net" Action Category):

Code: Select all

Server:Port :1234@192.168.0.160:8080 Path /requests/browse.xml?command=seek&val=+10S
(the other values are untouched. My VLC-Lua-Web-Password is 1234)
This works flawlessly and vlc jumps 10 seconds forward :)
So with this I could "easily" build a VLC-Remote-App with many many commands.
But still not the time position :(

franc
Blank Cone
Blank Cone
Posts: 53
Joined: 12 May 2007 10:06

Re: VLM on Raspberry Pi - only few commands

Postby franc » 18 Mar 2019 13:58

But after all, I didnt continue that VLM features, because I just use a wireless keyboard, which can use all functions of VLC :)


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 30 guests