VLC Telnet Kontrolė
Jump to navigation
Jump to search
VLC kontroliavimas per Telnet[keisti]
Šis scriptas skirtas straipsniui VLC Valdymas su lirc. Scriptą dedam į ~/.vlc/control
#!/bin/bash
# VLC Control Via telnet (c) 2013 \dev\null
# Launch VLC with: vlc --rc-host localhost:12345
function vlc {
echo "$1" | nc 127.0.0.1 12345 -q 1
}
case "$1" in
play)
vlc play
;;
pause)
vlc normal
vlc pause
;;
stop)
vlc pause
;;
next)
vlc next
;;
previous)
vlc prev
;;
help)
vlc longhelp
;;
volup)
vlc "volup 1"
;;
voldown)
vlc "voldown 1"
;;
snapshot)
vlc snapshot
;;
fullscreen)
vlc f
;;
info)
vlc info
;;
fastforward)
vlc fastforward
;;
rewind)
vlc rewind
;;
seek)
vlc "seek 5"
;;
normal)
vlc normal
;;
faster)
vlc faster
;;
slower)
vlc slower
;;
*)
echo $"Usage: $0 {play|pause|stop|next|previous}"
exit 1
esac