Commit 5c81e901 authored by Dan Rossi's avatar Dan Rossi
Browse files

- implement switch support for flash9 players that do not support dynamic switching

parent 05efa1ec
......@@ -545,15 +545,20 @@ package org.flowplayer.controller {
protected function doSwitchStream(event:ClipEvent, netStream:NetStream, clip:Clip, netStreamPlayOptions:Object = null):void {
//fix for #279, switch and pause if the current clip is currently in a paused state
//#404 implement netstreamplayoptions for http streams, resets the stream or start loading a new stream.
if (netStreamPlayOptions) {
pauseAfterStart = paused;
import flash.net.NetStreamPlayOptions;
if (netStreamPlayOptions is NetStreamPlayOptions) {
log.debug("doSwitchStream() calling play2()");
//#461 when we have a clip base url set, we need the complete clip url sent to play2 for http streams.
netStreamPlayOptions.streamName = clip.completeUrl;
netStream.play2(netStreamPlayOptions as NetStreamPlayOptions);
}
//implement switch support for flash9 players that do not support dynamic switching
if (CONFIG::FLASH_10_1) {
if (netStreamPlayOptions) {
pauseAfterStart = paused;
import flash.net.NetStreamPlayOptions;
if (netStreamPlayOptions is NetStreamPlayOptions) {
log.debug("doSwitchStream() calling play2()");
//#461 when we have a clip base url set, we need the complete clip url sent to play2 for http streams.
netStreamPlayOptions.streamName = clip.completeUrl;
netStream.play2(netStreamPlayOptions as NetStreamPlayOptions);
}
} else {
load(event, clip, this._paused);
}
} else {
load(event, clip, this._paused);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment