Commit f820dee1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix test.html on play/pause

parent 42cc1f34
......@@ -263,6 +263,7 @@ Insert VideoLAN.VLCPlugin.2
width="640"
height="480"
toolbar="true"
loop="true"
text="Waiting for video"
windowless="true"
name="vlc">
......@@ -686,18 +687,7 @@ function doPlayOrPause()
var vlc = getVLC("vlc");
if( vlc )
{
if( vlc.playlist.isPlaying && canPause )
{
vlc.playlist.togglePause();
}
else if( vlc.playlist.items.count > 0 )
{
vlc.playlist.play();
}
else
{
alert('nothing to play !');
}
}
}
......
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