MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 269

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 268
78
Parameters
numberOfSeconds The number of seconds to move forward or backward in a recorded stream
or playlist.
To return to the beginning of the stream or playlist, pass 0 for numberOfSeconds.
To seek forward from the beginning of the stream or playlist, pass the number of seconds you
want to advance. For example, to position the playhead at 15 seconds from the beginning, use
myStream.seek(15).
To seek relative to the current position, pass mystream.time +n or mystream.time -n to
seek
n seconds forward or backward, respectively, from the current position. For example, to
rewind 20 seconds from the current position, use myStream.seek(mystream.time - 20).
Returns
Nothing.
Description
Method; seeks the specified number of seconds into the recorded stream that is currently playing,
either from the beginning of the stream or from the current position. This method is available
only to clients subscribed to the specified stream, not to the streams publisher.
If you require an accurate return value from seeking, 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
false. When a seek occurs, the server seeks to the closest video keyframe possible and starts from
that keyframe. For example, if you want to seek to time 15, and there are keyframes only at time
11 and time 17, seeking actually starts 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, some compression is invoked on the server. Using the example above, if
the flag is set to true, then the server creates a keyframe—based on the preexisting 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. This, of course, involves some processing time on the
server.
See also
NetStream.play, NetStream.time
NetStream.send
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myStream.send(handlerName [,p1, ...,pN])
Parameters
handlerName A string that identifies the message; also the name of the ActionScript handler to
receive the message. The handler name can be only one level deep (that is, it cant be of the form
parent/child) and is relative to the stream object.
Note: Do not use a reserved term for a handler name. For example, myStream.send("close") will fail.
Seitenansicht 268
1 2 ... 264 265 266 267 268 269 270 271 272 273 274 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare