Skip to content

Commit

Permalink
flashlsFlowPlayer : attach NetStream to Video object once
Browse files Browse the repository at this point in the history
related to #157
  • Loading branch information
mangui committed May 12, 2015
1 parent da5ac8a commit ba00a72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file modified bin/debug/flashlsFlowPlayer.swf
Binary file not shown.
Binary file modified bin/release/flashlsFlowPlayer.swf
Binary file not shown.
6 changes: 5 additions & 1 deletion src/org/mangui/flowplayer/HLSStreamProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ package org.mangui.flowplayer {
private var _isManifestLoaded : Boolean = false;
private var _pauseAfterStart : Boolean;
private var _seekable : Boolean = false;
private var _streamAttached : Boolean = false;

public function getDefaultConfig() : Object {
return null;
Expand Down Expand Up @@ -267,7 +268,10 @@ package org.mangui.flowplayer {
CONFIG::LOGGING {
Log.debug("attachStream()");
}
Video(video).attachNetStream(_hls.stream);
if(_streamAttached == false) {
Video(video).attachNetStream(_hls.stream);
_streamAttached = true;
}
return;
}

Expand Down

0 comments on commit ba00a72

Please sign in to comment.