> set playback rate. must be > 0
?command=rate&val=<newplaybackrate>
+> set aspect ratio. Must be one of the following values. Any other value will reset aspect ratio to default
+ ?command=aspectratio&val=<newratio>
+ Valid aspect ratio values: 1:1 , 4:3 , 5:4 , 16:9 , 16:10 , 221:100 , 235:100 , 239:100
+
> sort playlist using sort mode <val> and order <id>:
?command=pl_sort&id=<id>&val=<val>
If id=0 then items will be sorted in normal order, if id=1 they will be
if vlc.object.input() then
vlc.var.set(vlc.object.input(),"spu-delay",val)
end
+ elseif command == "aspectratio" then
+ if vlc.object.vout() then
+ vlc.var.set(vlc.object.vout(),"aspect-ratio",val)
+ end
end
local input = nil
s.rate=1
s.subtitledelay=0
end
-
if vout then
s.fullscreen=vlc.var.get(vout,"fullscreen")
+ s.aspectratio=vlc.var.get(vout,"aspect-ratio");
+ if s.aspectratio=="" then s.aspectratio = "default" end
else
s.fullscreen=0
end