Class: SeekRequest

  • SeekRequest is a class used to request a seek operation on the current media.

  • The currentTime property specifies the new time in seconds to seek to, with special handling for live streams.

  • The customData property allows sending custom data to the receiver application with the seek request.

  • The resumeState property controls the desired state of the media player after the seek is finished.

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.