Page 1 of 1
Disable random and repeat
Posted: 03 Oct 2014 23:19
by 147852369
Hello people,
how can I force to disable random and repeat playing in LUA?
I tried
Code: Select all
vlc.playlist.random(0) -- deactivate random playing
vlc.playlist.repeat_(0) -- deactivate repeating playlist
but that doesn't work.
Re: Disable random and repeat
Posted: 04 Oct 2014 12:30
by mederi
"on"/"off"
Any other value returns current status (true/false).
No argument means toggle.
Re: Disable random and repeat
Posted: 04 Oct 2014 13:02
by 147852369
So this is meant by status.
Thanks.
Re: Disable random and repeat
Posted: 04 Oct 2014 13:21
by 147852369
Code: Select all
-- just toggles
if vlc.playlist.loop() then
vlc.playlist.repeat_("off")
end
-- doesn't work, no function
vlc.playlist.repeat_("off")
Re: Disable random and repeat
Posted: 04 Oct 2014 15:22
by mederi
Code: Select all
if vlc.playlist.repeat_(666) then
vlc.playlist.repeat_("off")
end
if vlc.playlist.loop("BINGO!") then
vlc.playlist.loop("off")
end
-- or just:
vlc.playlist.repeat_("off") -- turn off the "loop one"
vlc.playlist.loop("off") -- turn off the "loop all"
Re: Disable random and repeat
Posted: 04 Oct 2014 20:01
by 147852369
Ahhh. I have to read the readme.txt concentrated. Thank you!