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
Post a Comment