Multiple Bit Rate Switching - Adobe 65029121 - Flash Media Streaming Server Developer's Manual

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

private function netStatusHandler(event:NetStatusEvent):void
{
...
case "NetStream.Play.Stop":
trace("The stream has finished playing");
break;
case "NetStream.Play.StreamNotFound":
trace("The server could not find the stream");
break;
}
This playlist plays these streams:
A recorded stream named advertisement.flv, from the beginning, for 30 seconds
The recorded stream myvideo.flv, starting 10 seconds in, until it ends
The recorded stream bikes.flv, from start to end
The recorded stream parade.flv, starting 30 seconds in and continuing for 2 minutes

Multiple bit rate switching

About multiple bit rate switching
Adobe Flash Media Server can encode and deliver On2 V6 and Sorenson Spark encoded video. Flash Player 8 and 9
support both codecs, while Flash Player 7 and earlier versions support only the Sorenson Spark codec.
You can create virtual directories on the server to store copies of video streams in each format. This lets your appli-
cation deliver the highest quality content to clients based on their Flash Player version.
Consider an example: A user wants to play a stream and has Flash Player 8 installed, which can play On2 video. The
client application requests the HappyStream.flv file. After contacting the server, Flash Player 8 determines the value
of the
Client.virtualKey
default c:\streams directory, so the server plays the HappyStream.flv stream encoded with the On2 codec.
Deliver streams based on Flash Player version
Edit the
VirtualKeys
<VirtualKeys>
<Key from="WIN 7,0,19,0" to="WIN 9,0,115,0">A</Key>
<Key from="WIN 6,0,0,0" to="WIN 7,0,18,0">B</Key>
<Key from="MAC 6,0,0,0" to="MAC 7,0,55,0">B</Key>
</VirtualKeys>
<VirtualDirectory>
<Streams key="A">foo;c:\streams\on2</Streams>
<Streams key="B">foo;c:\streams\sorenson</Streams>
<Streams key="">foo;c:\streams</Streams>
</VirtualDirectory>
For more information about editing the Key and Streams elements, see Adobe Flash Media Server Configuration and
Administration Guide.
property. The
virtualKey
and
elements in the Vhost.xml file as follows:
VirtualDirectory
property maps to the c:\streams\on2 directory, instead of the
ADOBE FLASH MEDIA SERVER
Developer Guide
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server

Table of Contents