Disable random and repeat

Discuss your Lua playlist, album art and interface scripts.
147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

Disable random and repeat

Postby 147852369 » 03 Oct 2014 23:19

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Disable random and repeat

Postby mederi » 04 Oct 2014 12:30

"on"/"off"
Any other value returns current status (true/false).
No argument means toggle.

147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

Re: Disable random and repeat

Postby 147852369 » 04 Oct 2014 13:02

So this is meant by status. :D Thanks.

147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

Re: Disable random and repeat

Postby 147852369 » 04 Oct 2014 13:21

Code: Select all

-- just toggles if vlc.playlist.loop() then vlc.playlist.repeat_("off") end -- doesn't work, no function vlc.playlist.repeat_("off")

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Disable random and repeat

Postby mederi » 04 Oct 2014 15:22

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"

147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

Re: Disable random and repeat

Postby 147852369 » 04 Oct 2014 20:01

Ahhh. I have to read the readme.txt concentrated. Thank you!


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 4 guests