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
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,17 @@ package org.flowplayer.controller {
private function replacePlaylistAndPlay(clips:Object):void {

//#163 stop the connection and stream
_state.stop(true, true);
//#197 don't set stop to silent, causes some issues
_state.stop(true);
clearStream();

if (clips is Clip) {
_playList.replaceClips(clips as Clip);
} else {
_playList.replaceClips2(clips as Array);
}
play();

_state.play();
}

flow_internal function addProvider(provider:ProviderModel):void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ import org.flowplayer.model.ClipEventType;

override internal function stop(closeStreamAndConnection:Boolean = false, silent:Boolean = false):void {
if (closeStreamAndConnection) {
stop(true);
//#197 fix stack error referencing stop method
super.stop(closeStreamAndConnection, silent);
}
}

internal override function startBuffering():void {
internal override function startBuffering():void {
if (! playListReady) return;
log.debug("startBuffering()");
bufferingState.nextStateAfterBufferFull = pausedState;
Expand Down