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:
Code
<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>
Display More
Thanks!