Closed GoogleCodeExporter closed 8 years ago
See the patch I posted on issue number 2. To get seek to work you have to
properly notify the duration. There is still an issue seeking with live
streams I am working on as well as properly updating the currentTime for the
media player when starting a live stream.
Original comment by dakazm...@gmail.com
on 5 Aug 2011 at 3:41
I just committed the patch for both duration and live streaming. please
re-check out the code now and see if live streaming works for you.
Here are is my seekbar in the application.mxml:
<code>
<mx:HSlider id="seekBar" width="100%" change="onSeek(seekBar.value)"/>
...
private function onSeek(loc:Number):void {
mediaPlayer.seek(loc);
}
private function onDurationChange(event:TimeEvent):void {
if(mediaPlayer.duration <= 0) { // its a live stream
seekBar.visible = false;
} else {
seekBar.maximum = event.time;
}
}
</code>
Original comment by dakazm...@gmail.com
on 11 Aug 2011 at 10:01
Original issue reported on code.google.com by
kpda...@gmail.com
on 3 Aug 2011 at 12:07