-
1. Re: How to Prevent Endless Buffering after Playback?
A. Grahn Jun 6, 2013 7:41 AM (in response to mrwizzer2)This is a bug. I could fix it using the source patch below.
Download the fixed version from:
http://mirrors.ctan.org/macros/latex/contrib/media9/players/StrobeMediaPlayback.swf
--- ./player/StrobeMediaPlayback/src/org/osmf/player/chrome/widgets/PlayButtonOverlay.as.orig 2012-11-14 15:48:22.000000000 +0100
+++ ./player/StrobeMediaPlayback/src/org/osmf/player/chrome/widgets/PlayButtonOverlay.as 2012-11-20 15:14:02.000000000 +0100
@@ -98,6 +98,11 @@
override protected function onMouseClick(event:MouseEvent):void
{
var playable:PlayTrait = media.getTrait(MediaTraitType.PLAY) as PlayTrait;
+ var seekable:SeekTrait = media.getTrait(MediaTraitType.SEEK) as SeekTrait;
+ if(playable.playState == PlayState.STOPPED)
+ {
+ try{seekable.seek(0);}catch(e:Object){}
+ }
playable.play();
}@@ -134,4 +139,4 @@
/* static */
private static const VISIBILITY_DELAY:int = 500;
}
-}
\ No newline at end of file
+}
--- ./player/StrobeMediaPlayback/src/org/osmf/player/chrome/widgets/PlayButton.as.orig 2012-11-14 15:48:22.000000000 +0100
+++ ./player/StrobeMediaPlayback/src/org/osmf/player/chrome/widgets/PlayButton.as 2012-11-14 15:42:53.000000000 +0100
@@ -26,6 +26,7 @@
import org.osmf.traits.MediaTraitType;
import org.osmf.traits.PlayState;
import org.osmf.traits.PlayTrait;
+ import org.osmf.traits.SeekTrait;public class PlayButton extends PlayableButton
{
@@ -44,6 +45,11 @@
override protected function onMouseClick(event:MouseEvent):void
{
var playable:PlayTrait = media.getTrait(MediaTraitType.PLAY) as PlayTrait;
+ var seekable:SeekTrait = media.getTrait(MediaTraitType.SEEK) as SeekTrait;
+ if(playable.playState == PlayState.STOPPED)
+ {
+ try{seekable.seek(0);}catch(e:Object){}
+ }
playable.play();
event.stopImmediatePropagation();
}
@@ -58,4 +64,4 @@
}
}
}
-}
\ No newline at end of file
+} -
2. Re: How to Prevent Endless Buffering after Playback?
mrwizzer2 Jun 6, 2013 9:10 AM (in response to A. Grahn)A. Grahn, thank you for your helpful response! I downloaded the .swf and replaced the old one and... voila! No more buffering issue!
A million thanks!
Mike
-
3. Re: How to Prevent Endless Buffering after Playback?
A. Grahn Jun 7, 2013 3:10 AM (in response to mrwizzer2)Glad to hear it. Could you please mark it as `correct answer'? Thanks!
-
4. Re: How to Prevent Endless Buffering after Playback?
mrwizzer2 Jun 10, 2013 8:35 AM (in response to A. Grahn)Gladly. Thanks again!


