|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectionSession
A session for presentation of one or more services over a period of time by a SelectionProvider. The first operation on a new session will always be selection of a service in a service context, and all subsequent operations will pertain to the same service context.
Method Summary | |
---|---|
void |
destroy()
Called by the platform when the service bound to this session is no longer being used by the implementation. |
Locator |
select()
Sets up delivery of a stream representing the service, and delivers a locator for reception of that stream. |
void |
selectionReady()
Called when the implementation is ready to receive content on the locator returned by the select method. |
long |
setPosition(long position)
Set the position within the media. |
float |
setRate(float newRate)
Sets the speed of playback. |
Method Detail |
---|
Locator select()
void destroy()
void selectionReady()
A SelectionSession might be destroyed after a select, but before this method is called. In this case, this method may not be called. Applications should therefore not expect this method to be called after destroy() is called on this session.
destroy()
float setRate(float newRate)
newRate
- New playback rate. Implementations shall make
a best effort to approximate this rate.
long setPosition(long position)
position
- The position within the program, in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |