Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/actionscript/org/flowplayer/view/AnimationEngine.as
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ package org.flowplayer.view {
playable.addEventListener(GoEvent.COMPLETE,
function(event:GoEvent):void {
onComplete(view, playable, completeCallback);
}, false, 0, true);
});
if (updateCallback != null) {
playable.addEventListener(GoEvent.UPDATE,
function(event:GoEvent):void {
updateCallback(view);
}, false, 0, true);
});
}

playable.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,23 @@ package org.flowplayer.view {

if ( _hasStageVideo && _stage.stageVideos.length ) {
_stageVideo = _stage.stageVideos[0];
_stageVideo.addEventListener(StageVideoEvent.RENDER_STATE, _displayStageVideo);
super.visible = false;
//#503 update viewport when stage is added to obtain the coordnates correctly.
_updateStageVideo();
} else {
super.visible = true;
_hasStageVideo = false;
}

attachNetStream(_netStream);
}

override public function attachNetStream(netStream:NetStream):void {
_netStream = netStream;
if ( hasStageVideo ) {
log.info("Attaching netstream to stageVideo");

stageVideo.attachNetStream(_netStream);
stageVideo.addEventListener(StageVideoEvent.RENDER_STATE, _displayStageVideo);

_stageVideo.attachNetStream(_netStream);
} else {
log.info("Attaching netstream to video");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ package org.flowplayer.httpstreaming {
override public function get bufferStart():Number
{
if (! clip) return 0;
return _bufferStart - clip.start;
//#204 start offset does not need to be taken off the buffer offset when using offset and duration this caused issues.
return _bufferStart;
}

override public function get bufferEnd() : Number {
Expand Down