Commit b88f7e6d authored by Olivier Teulière's avatar Olivier Teulière

* skins2: added vlc.volumeUp() and vlc.volumeDown() actions

parent 97a8984f
......@@ -709,6 +709,12 @@ difficulty to understand how VLC skins work.</para>
<listitem><para>
<emphasis>vlc.mute()</emphasis>: Toggle mute/un-mute.
</para></listitem>
<listitem><para>
<emphasis>vlc.volumeUp()</emphasis>: Increase the volume (since VLC 0.8.2).
</para></listitem>
<listitem><para>
<emphasis>vlc.volumeDown()</emphasis>: Reduce the volume (since VLC 0.8.2).
</para></listitem>
<listitem><para>
<emphasis>vlc.fullscreen()</emphasis>: Toggle the fullscreen mode.
</para></listitem>
......
......@@ -109,3 +109,15 @@ void CmdMute::execute()
aout_VolumeMute( getIntf(), NULL );
}
void CmdVolumeUp::execute()
{
aout_VolumeUp( getIntf(), 1, NULL );
}
void CmdVolumeDown::execute()
{
aout_VolumeDown( getIntf(), 1, NULL );
}
......@@ -34,6 +34,8 @@ DEFINE_COMMAND( Stop, "stop" )
DEFINE_COMMAND( Slower, "slower" )
DEFINE_COMMAND( Faster, "faster" )
DEFINE_COMMAND( Mute, "mute" )
DEFINE_COMMAND( VolumeUp, "volume up" )
DEFINE_COMMAND( VolumeDown, "volume down" )
#endif
......@@ -83,6 +83,8 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
REGISTER_CMD( "vlc.faster()", CmdFaster )
REGISTER_CMD( "vlc.slower()", CmdSlower )
REGISTER_CMD( "vlc.mute()", CmdMute )
REGISTER_CMD( "vlc.volumeUp()", CmdVolumeUp )
REGISTER_CMD( "vlc.volumeDown()", CmdVolumeDown )
REGISTER_CMD( "vlc.minimize()", CmdMinimize )
REGISTER_CMD( "vlc.onTop()", CmdOnTop )
REGISTER_CMD( "vlc.quit()", CmdQuit )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment