AI-generated Key Takeaways
-
SeekRequestis a class used to request a seek operation on the current media. -
The
currentTimeproperty specifies the new time in seconds to seek to, with special handling for live streams. -
The
customDataproperty allows sending custom data to the receiver application with the seek request. -
The
resumeStateproperty controls the desired state of the media player after the seek is finished.
chrome.cast.media. SeekRequest
A request to seek the current media.
Constructor
SeekRequest
new SeekRequest()
Properties
currentTime
nullable number
The new current time for the media, in seconds after the start of the media. If the media type is chrome.cast.media.StreamType.LIVE, then currentTime is optional; if not set, the stream will resume at the live media position.
customData
nullable Object
Custom data for the receiver application.
resumeState
nullable chrome.cast.media.ResumeState
The desired media player state after the seek is complete. If unset, it will retain the state it had before seeking.