Description
Method; controls the data source of a stream with an optional start time, duration, and reset
flag to flush any previously playing stream. The
that lets you reference a NetConnection object to play a stream from another server. The
method allows you to do the following:
Stream.play()
Chain streams between servers.
Create a hub to switch between live streams and recorded streams.
Combine different steams into a recorded stream.
You can combine multiple streams to create a playlist for clients. The server-side
method behaves a bit differently than the
Stream.play()
client side. A
call on the server is similar to a
play
source of the data that is coming into a stream. When you call
server becomes the publisher. Because the server has a higher priority than the client, the
client is forced to unpublish from the stream if the server calls a
stream.
In general, if any recorded streams are included in a server playlist, you cannot play the server
stream as a live stream.
A stream that plays from a remote server by means of the NetConnection object is a live
stream.
If you require a value to begin a stream, you may need to change the Application.xml file's
"Enhanced seeking" flag at the server. "Enhanced seeking" is a Boolean flag in the
Application.xml file. By default, this flag is set to
to the closest video keyframe possible and starts from that keyframe. For example, if you want
to play at time 15, and there are keyframes only at time 11 and time 17, seeking will start
from time 17 instead of time 15. This is an approximate seeking method that works well with
compressed streams.
If the flag is set to
true
example, if the flag is set to
keyframe at time 11—for each keyframe from 11 through 15. Even though a keyframe does
not exist at the seek time, the server generates a keyframe, which involves some processing
time on the server.
, some compression is invoked on the server. Using the previous
, the server creates a keyframe—based on the preexisting
true
method also has a parameter
Stream.play()
NetStream.play
call on the client. It controls the
publish
Stream.play
play
. When a play occurs, the server seeks
false
method on the
on the server, the
method on the same
Stream class
153
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?