]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/parser/interpreter.cpp
* skins2: support playlist.setRandom(true) and playlist.setRandom(false)
[vlc] / modules / gui / skins2 / parser / interpreter.cpp
index 19a28ad4b12a66e9d2c9ee5613db4675220cb77e..a3a916372606b4ab05c3a9e5a4a77342dda36759 100644 (file)
@@ -70,6 +70,10 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
         CmdGenericPtr( new CmdPlaylistLoop( getIntf(), true ) );
     m_commandMap["playlist.setLoop(false)"] =
         CmdGenericPtr( new CmdPlaylistLoop( getIntf(), false ) );
+    m_commandMap["playlist.setRepeat(true)"] =
+        CmdGenericPtr( new CmdPlaylistRepeat( getIntf(), true ) );
+    m_commandMap["playlist.setRepeat(false)"] =
+        CmdGenericPtr( new CmdPlaylistRepeat( getIntf(), false ) );
     REGISTER_CMD( "vlc.fullscreen()", CmdFullscreen )
     REGISTER_CMD( "vlc.play()", CmdPlay )
     REGISTER_CMD( "vlc.pause()", CmdPause )