Commit f5913acb authored by Daniel Amm's avatar Daniel Amm Committed by Jean-Baptiste Kempf

test pages: show current state after buffering

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0b534e9a
......@@ -107,7 +107,18 @@ function handle_MediaPlayerOpening()
function handle_MediaPlayerBuffering(val)
{
var vlc = getVLC("vlc");
document.getElementById("info").innerHTML = val + "%";
if( vlc && val == 100 )
{
// display the current state after buffering
if( vlc.playlist.isPlaying )
onPlay();
else
onPause();
}
}
function handle_MediaPlayerPlaying()
......
......@@ -111,7 +111,18 @@ function handle_MediaPlayerOpening()
function handle_MediaPlayerBuffering(val)
{
var vlc = getVLC("vlc");
document.getElementById("info").innerHTML = val + "%";
if( vlc && val == 100 )
{
// display the current state after buffering
if( vlc.playlist.isPlaying )
onPlay();
else
onPause();
}
}
function handle_MediaPlayerPlaying()
......
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