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 { ...@@ -545,15 +545,20 @@ package org.flowplayer.controller {
protected function doSwitchStream(event:ClipEvent, netStream:NetStream, clip:Clip, netStreamPlayOptions:Object = null):void { 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 //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. //#404 implement netstreamplayoptions for http streams, resets the stream or start loading a new stream.
if (netStreamPlayOptions) { //implement switch support for flash9 players that do not support dynamic switching
pauseAfterStart = paused; if (CONFIG::FLASH_10_1) {
import flash.net.NetStreamPlayOptions; if (netStreamPlayOptions) {
if (netStreamPlayOptions is NetStreamPlayOptions) { pauseAfterStart = paused;
log.debug("doSwitchStream() calling play2()"); import flash.net.NetStreamPlayOptions;
//#461 when we have a clip base url set, we need the complete clip url sent to play2 for http streams. if (netStreamPlayOptions is NetStreamPlayOptions) {
netStreamPlayOptions.streamName = clip.completeUrl; log.debug("doSwitchStream() calling play2()");
netStream.play2(netStreamPlayOptions as NetStreamPlayOptions); //#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 { } else {
load(event, clip, this._paused); 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