MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 263

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 262
72
NetStream.play
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
mystream.play(whatToPlay | false [,start [, length [, flushPlaylists]]])
Parameters
whatToPlay An identifying name for live data published by NetStream.publish, a recorded
file name for playback, or
false. If you pass false, the stream stops playing and any additional
parameters you send are ignored.
start An optional numeric parameter that specifies the start time, in seconds. This parameter
can also be used to indicate whether the stream is live or recorded.
The default value for start is -2, which means that Flash first tries to play the live stream
specified in
whatToPlay. If a live stream of that name is not found, Flash plays the recorded
stream specified in
whatToPlay. If neither a live nor a recorded stream is found, Flash opens a
live stream named
whatToPlay even though no one is publishing on it; when someone does
begin publishing on that stream, Flash begins playing it.
If you pass -1 for start, Flash plays only the live stream specified in whatToPlay. If no live
stream is found, Flash waits for it indefinitely if
length is set to -1; if length is set to a
different value, Flash waits for
length seconds before it begins playing the next item in
the playlist.
If you pass 0 or a positive number for start, Flash plays only a recorded stream named
whatToPlay, beginning start seconds from the beginning of the stream. If no recorded
stream is found, Flash begins playing the next item in the playlist immediately.
If you pass a negative number other than -1 or -2 for start, Flash interprets the value as
if it were -2.
length An optional numeric parameter that specifies the duration of the playback, in seconds.
The default value for length is -1, which means that Flash plays a live stream until it is no
longer available or plays a recorded stream until it ends.
If you pass 0 for length, Flash plays the single frame that is start seconds from the beginning
of a recorded stream (assuming
start is equal to or greater than 0).
If you pass a positive number for length, Flash plays a live stream for length seconds after it
becomes available, or plays a recorded stream for
length seconds. (If a stream ends before
length seconds, playback ends when the stream ends.)
If you pass a negative number other than -1 for length, Flash interprets the value as
if it were -1.
flushPlaylists An optional Boolean parameter that specifies whether to flush any
previous playlist.
The default value for flushPlaylists is true, which means that any previous play calls are
cleared and
whatToPlay is played immediately.
If you pass false for flushPlaylists, whatToPlay is added (queued) in the current playlist;
that is,
whatToPlay plays only after previous streams have completed playing.
Przeglądanie stron 262
1 2 ... 258 259 260 261 262 263 264 265 266 267 268 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag