[vlc-commits] Fix test.html on play/pause
Jean-Baptiste Kempf
git at videolan.org
Sun Dec 30 22:18:38 CET 2012
npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Dec 30 22:18:19 2012 +0100| [f820dee128a1c7292d52fb05da5d2d92f2a95420] | committer: Jean-Baptiste Kempf
Fix test.html on play/pause
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=f820dee128a1c7292d52fb05da5d2d92f2a95420
---
share/test/test.html | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/share/test/test.html b/share/test/test.html
index 722c3da..f7e4b89 100644
--- a/share/test/test.html
+++ b/share/test/test.html
@@ -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 !');
- }
}
}
More information about the vlc-commits
mailing list