bash - Linux Shell: VLC programming -



bash - Linux Shell: VLC programming -

is there way manipulate vlc linux shell script without script waiting vlc close.

cvlc test.mp3 echo "now playing!" sleep 200 cvlc://pause:60

this code keeps running vlc until file completed, , evidently late pause file.

you need utilize dbus interface of vlc.

now, can utilize mpris interface of vlc. it's standard players clementine, banshee, songbird, spotify etc.

so, lets suppose want pause playing song.

dbus-send --print-reply --session --dest=org.mpris.vlc /player org.freedesktop.mediaplayer.pause

to play song:

dbus-send --print-reply --session --dest=org.mpris.vlc /player org.freedesktop.mediaplayer.play

i utilize qdbusviewer know dbus-interface available me.

linux bash shell vlc

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -