Sie sind nicht angemeldet.

1

Freitag, 16. Januar 2015, 12:50

Detecting video buffering.

I'm having some difficulty triggering an event when a video hangs due to buffering. In the past I've relied on the onvideopaused event being triggered but that doesn't seem to happen any more (not sure if that's a change to the web browser or krpano but I get the same results in Safari on iOs and Chrome using the flash player).

As a work around I tried checking the videoplayer's iswaiting variable. However this returns false even when the video hangs for minutes at a time. Does anyone have any thoughts on a fix?

Here's the panorama I've been using to test this:

http://panos.pequod.me/panos/testcode/bufferingtest/

And here is the xml:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<krpano version="1.18">

        <events onxmlcomplete="showlog();" />

        <preview type="grid(cube,64,64,512,0xCCCCCC,0xF6F6F6,0x999999);" />

        <action name="isBuffering">    trace(get(plugin[%1].iswaiting));    if (plugin[%1].iswaiting === true,    plugin[%1].pause();                );    delayedcall(1, isBuffering(%1, true););</action>

        <plugin name="video" 	url.flash="videoplayer.swf" 	url.html5="videoplayer.js" 	onvideoplay="isBuffering('video');" 	onvideocomplete="trace('complete')" 	onvideoready="trace('ready');" 	onvideopaused="trace('paused');" 	pausedonstart="true" 	onclick="plugin[video].play();" 	videourl="media/elephant.mp4" 	align="center"         />

</krpano>


Thanks!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »pequodification« (16. Januar 2015, 13:45)


2

Montag, 9. Februar 2015, 14:14

Still searching for a solution for this. Any suggestions would be greatly appreciated!

3

Samstag, 14. Februar 2015, 11:17

Hi,

it depends on the browser if there the video will be paused on buffering - I'm not fully sure yet, but I think the last time I've checked this only Firefox was doing this...

But I will look into that topic again of course.

Best regards,
Klaus