public static class StandardRequest.Seek extends StandardRequest.MediaRequest
StandardRequest.GetAppAvailability, StandardRequest.GetStatus, StandardRequest.Launch, StandardRequest.Load, StandardRequest.MediaRequest, StandardRequest.Pause, StandardRequest.Play, StandardRequest.ResumeState, StandardRequest.Seek, StandardRequest.SetVolume, StandardRequest.Stop, StandardRequest.StopMedia, StandardRequest.VolumeRequestStandardMessage.CloseConnection, StandardMessage.Connect, StandardMessage.Origin, StandardMessage.Ping, StandardMessage.Pong| Modifier and Type | Field and Description |
|---|---|
protected double |
currentTime
The new playback position in seconds
|
protected Map<String,Object> |
customData
Custom data for the receiver application
|
protected StandardRequest.ResumeState |
resumeState
The desired media player state after the seek is complete.
|
mediaSessionId, sessionIdrequestId| Constructor and Description |
|---|
Seek(int mediaSessionId,
String sessionId,
double currentTime,
Map<String,Object> customData,
StandardRequest.ResumeState resumeState)
Creates a new request to move the playback position of the media
referenced by the specified media session ID to the specified
position.
|
Seek(int mediaSessionId,
String sessionId,
double currentTime,
StandardRequest.ResumeState resumeState)
Creates a new request to move the playback position of the media
referenced by the specified media session ID to the specified
position.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrentTime() |
Map<String,Object> |
getCustomData() |
StandardRequest.ResumeState |
getResumeState() |
getMediaSessionId, getSessionIdgetRequestId, setRequestIdprotected final double currentTime
@Nullable protected final Map<String,Object> customData
@Nullable protected final StandardRequest.ResumeState resumeState
null, it will retain the state it had before seekingpublic Seek(int mediaSessionId,
@Nonnull
String sessionId,
double currentTime,
@Nullable
StandardRequest.ResumeState resumeState)
mediaSessionId - the media session ID for which the seek request
applies.sessionId - the session ID to use.currentTime - the new playback position in seconds.resumeState - the desired media player state after the seek is
complete. If null, it will retain the state it had
before seeking.public Seek(int mediaSessionId,
@Nonnull
String sessionId,
double currentTime,
@Nullable
Map<String,Object> customData,
@Nullable
StandardRequest.ResumeState resumeState)
mediaSessionId - the media session ID for which the seek request
applies.sessionId - the session ID to use.currentTime - the new playback position in seconds.customData - the custom data for the receiver application.resumeState - the desired media player state after the seek is
complete. If null, it will retain the state it had
before seeking.public double getCurrentTime()
@Nullable public Map<String,Object> getCustomData()
@Nullable public StandardRequest.ResumeState getResumeState()
null, it will retain the state it had before seeking.Copyright © 2022. All rights reserved.