vlc qdbus interface add track and delete track


i enjoyed when i understood some thing and i like very much when i get how to control via bash\qdbus vlc.

the first stuff you need it’s ENABLE QDBUS INTERFACE on vlc

go to Tools -> Preferences -> Show all -> Interface -> Control Interface and Enable DBus

then you can control vlc with this

ADD TRACK :

qdbus org.mpris.vlc /TrackList org.freedesktop.MediaPlayer.AddTrack “PATH OF THE FILE” 1

or for a streaming

 qdbus org.mpris.vlc /TrackList   org.freedesktop.MediaPlayer.AddTrack    "mms://84.233.254.2/3Channel" 1 

DELETE TRACK

qdbus org.mpris.vlc /TrackList   org.freedesktop.MediaPlayer.DelTrack   0 

to see many other control you can run , like you can see in the picture…

qdbusviewer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: