|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MediaTimePositionControl
Control to set and retrieve the mediaTime for stream media
The maximum duration of the media can be retrieved from the Duration interface
if it is implemented by the media type.
to find out the duration for a media
,
for the specification of media time
Method Summary | |
---|---|
void |
addMediaTimeChangeListener(MediaTimeChangeListener listener)
Adds a MediaTimeChangeListener to the Control, the player will raise an event
if the media time is changed with the setMediaTimePosition method. |
int |
addMediaTimeListener(MediaTimeListener listener,
Time time)
Adds a MediaTimeListener to the Control, the player will raise an event
if the media reaches the given Time , the event will have the ID that is given back
during the registration process for easier identification and management on the application level
The system is responsible to raise the event as close as possible to the given Time . |
Time |
getMediaTimePosition()
Returns the mediaTime of the media currently handled by the Player. |
void |
removeMediaTimeChangeListener(MediaTimeChangeListener listener)
Removes a MediaTimeChangeListener from a player. |
boolean |
removeMediaTimeEventID(int ID)
Removes the given ID from the system. |
void |
removeMediaTimeListener(MediaTimeListener listener)
Removes a MediaTimeListener from a player and all the associated
data (times and IDs) from the system. |
Time |
setMediaTimePosition(Time mediaTime)
Sets the media time as closely as possible to the requested media time. |
Methods inherited from interface javax.media.Control |
---|
getControlComponent |
Method Detail |
---|
Time setMediaTimePosition(Time mediaTime)
mediaTime
- the desired mediaTime.
getMediaTimePosition()
Time getMediaTimePosition()
setMediaTimePosition(javax.media.Time)
int addMediaTimeListener(MediaTimeListener listener, Time time)
MediaTimeListener
to the Control, the player will raise an event
if the media reaches the given Time
, the event will have the ID that is given back
during the registration process for easier identification and management on the application level
The system is responsible to raise the event as close as possible to the given Time
.
listener
- the listener to be added.time
- when the player should raise the event.
removeMediaTimeListener(com.sun.dtv.media.timeline.MediaTimeListener)
void removeMediaTimeListener(MediaTimeListener listener)
MediaTimeListener
from a player and all the associated
data (times and IDs) from the system.
listener
- to be removed from the system.addMediaTimeListener(com.sun.dtv.media.timeline.MediaTimeListener, javax.media.Time)
boolean removeMediaTimeEventID(int ID)
ID
from the system. Must be an ID that was
given as return value from the addMediaTimeListener
ID
- of the event that has to removed from the system.
void addMediaTimeChangeListener(MediaTimeChangeListener listener)
MediaTimeChangeListener
to the Control, the player will raise an event
if the media time is changed with the setMediaTimePosition
method.
listener
- the listener to be added.setMediaTimePosition(javax.media.Time)
,
removeMediaTimeListener(com.sun.dtv.media.timeline.MediaTimeListener)
void removeMediaTimeChangeListener(MediaTimeChangeListener listener)
MediaTimeChangeListener
from a player.
listener
- to be removed from the system.addMediaTimeChangeListener(com.sun.dtv.media.timeline.MediaTimeChangeListener)
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |