It's possible from VLC command line ?
Thanks.
No, start VLC with playlist (any type) and specified playlist item (preferably in the same command line)For an existing instance? It depends. You can use MPRIS if your VLC build has D-Bus support.
Wow, can you provide the command line parameters ?Oh of course that is supported.
Code: Select all
vlc.playlist.clear ();
vlc.playlist.add ({{path=config.playlist}})
local bPlaylistExists = 1;
while (bPlaylistExists == 1) and not vlc.misc.should_die() do
bPlaylistExists = 0;
PlaylistItem = vlc.playlist.get("playlist")
for i = 1, #PlaylistItem.children do
if (PlaylistItem.children[i].path == config.playlist) then
bPlaylistExists = 1
end
end
if (bPlaylistExists == 0) and (config.playlistitem <= #PlaylistItem.children) then
i = #PlaylistItem.children;
while i > 0 do
if (i ~= config.playlistitem) then
vlc.playlist.delete(PlaylistItem.children[i].id)
end
i = i - 1
end
end
vlc.misc.mwait ( vlc.misc.mdate() + 10000 )
end
vlc.var.create(vlc.object.libvlc(), "demuxdump-file", "C:\\Test1\\test.mp3")
vlc.var.create(vlc.object.libvlc(), "demux", "dump")
vlc.playlist.play()
Code: Select all
vlc --play-and-exit --no-playlist-autostart --extraintf=dummy -Iluaintf --lua-intf=test --lua-config "test={playlist='file:///C:\\Test1\\test.pls',playlistitem=5}"
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 45 guests