Can I get the path of the file that is currently playing?

Discuss your Lua playlist, album art and interface scripts.
vasilis
New Cone
New Cone
Posts: 1
Joined: 26 Sep 2019 21:39

Can I get the path of the file that is currently playing?

Postby vasilis » 26 Sep 2019 22:12

Hi!
I would like to ask two questions:
1. Can I get the path of the file that is currently playing (e.g. C:\My Music\song1.mp3) through COMMAND LINE (cmd) or Powershell? If yes, what is the code for this?
2. Does VLC have an in-built internet browser or a plug-in that embodies one το VLC? If in both cases the answer is "yes", can this browser be controlled through COMMAND LINE or powershell? For example, to load an internet page on the browser through cmd/powershell.

I am very new to programming so please use simple language!
Thank you

smw
New Cone
New Cone
Posts: 4
Joined: 01 Oct 2019 06:04

Re: Can I get the path of the file that is currently playing?

Postby smw » 02 Oct 2019 05:48

You've posted on the Lua scripting forum. Lua is not CLI (cmd, etc). You can see the options via vlc -H. I think you will see some output of
the currently playing song if you run vlc with the verbose flag (vlc -v). Hopefully that gets what you need. There is also a CLI interface (cvlc) that may be of interest to you.

The answer to the second thing you mention I assume is "no". This is because browser plugins are not started from the command line.

Have a look at dbus and MPRIS2. Though I am not sure if the MS Win version of vlc uses dbus, or if the dbus running on MS Win is stable. Near the bottom of this page(https://www.freedesktop.org/wiki/Software/dbus/) you will see "Windows port".


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 7 guests