Help with the remote control part of VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Curious cat
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2019 22:58

Help with the remote control part of VLC

Postby Curious cat » 14 Oct 2019 23:11

I have tried the WEB interface and it leaves a bit to be desired.

The APP (or phones) works nicely.

But I am wanting to build a remote interface on another machine.

Just the basic commands like: play, stop, pause, next, previous.
Display the name of the song playing.

Anyway, I am confused with all the terms for the remote control.

I've looked in the settings: Interfaces/Main interfaces.
There is: Remote control interface Ncurses interface Lua interpreter Telnet Web Console.
There are others, but they are even more vague to their meaning than these I listed.

I don't mind putting in the effort to build it, but I can't find an example of how to do it.

I have also discovered that if I use the "console" version that it doesn't work like I send commands to the machine, as each case is a new CLI (console/terminal) and so every command after the first one doesn't see VLC.

Could someone explain how I can get it working?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Help with the remote control part of VLC

Postby unidan » 15 Oct 2019 00:38

Hi, the http interface is exposing both a web interface and an API, but you can use the HTML interface you want and just have javascript do XMLHttpRequest to the API endpoint.

A vue.js interface has been made though, so you might want to take it as a start if the license fits your need.

Curious cat
Blank Cone
Blank Cone
Posts: 12
Joined: 14 Oct 2019 22:58

Re: Help with the remote control part of VLC

Postby Curious cat » 15 Oct 2019 00:46

Thanks for the reply.

Although you say the http interface exposes both a web and API interface. . . . . . I am unable to understand how to use them.

I have a working WEB interface working. I see the basic controls on a web page and can control the playing of songs. But it is clunky in its looks.

That isn't a problem. It works, and I know that building an interface is not easy.

I am wanting to have a means of sending something to the machine to start VLC. If it is a "dead end" command, no problems.
But from there on, I want to be able to send "commands" to VLC.
Eg: Play, Pause, and so on.

I can't find an explanation on HOW to do that.

Say TELNET. Just for the sake of establishing a base line.

How can I get VLC to accept a TELNET command?
If I ask for the song name (get_title) I believe. How do I see the return message with the name?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests