local status = vlc.playlist.status()
if command == "in_play" then
- ---[[
+ --[[
vlc.msg.err( "<options>" )
for a,b in ipairs(options) do
vlc.msg.err(b)
elseif command == "in_enqueue" then
vlc.playlist.enqueue({{path=stripslashes(input),options=options}})
elseif command == "pl_play" then
- vlc.playlist.goto(id)
+ if id == -1 then
+ vlc.playlist.play()
+ else
+ vlc.playlist.goto(id)
+ end
elseif command == "pl_pause" then
- vlc.msg.err("FIXME: pl_pause implementation is ugly")
- common.hotkey("key-play-pause") -- gruik
+ vlc.playlist.pause()
elseif command == "pl_stop" then
vlc.playlist.stop()
elseif command == "pl_next" then
vlc.sd.add(val)
end
elseif command == "fullscreen" then
- vlc.fullscreen()
+ vlc.video.fullscreen()
elseif command == "snapshot" then
common.snapshot()
elseif command == "volume" then