TOC Prev Next Clock and Player interfaces define the methods for starting and stopping a
Player.
4.1 Starting a PlayerYou typically start aPlayer by calling start. The start method tells the Player
to begin presenting media data as soon as possible. If necessary, start prepares
the Player to start by performing the realize and prefetch operations. If start is
called on a Started Player, the only effect is that a StartEvent is posted in
acknowledgment of the method call.
Clock defines a To start a
4.2 Stopping a PlayerThere are four situations in which aPlayer will stop:
Player is stopped, its media time is frozen. If the Stopped
Player is subsequently restarted, media time resumes from the stop time. When
you stop a broadcast Player, only the receipt of the media data is stopped; the
data continues to be broadcast. When you restart a broadcast Player, the playback
will resume wherever the broadcast is at that point in time.
You use the 4.2.1 Stopping a Player at a Specified TimeYou can callsetStopTime to indicate when a Player should stop. The Player
stops when its media time passes the specified stop time. If the Player's rate is
positive, the Player stops when the media time becomes greater than or equal to
the stop time. If the Player's rate is negative, the Player stops when the media
time becomes less than or equal to the stop time. The Player stops immediately if
its current media time is already beyond the specified stop time.
For example, assume that a You can always call You can call
TOC Prev Next | |||||
|
| ||||||||||||