Called by the renderer when the currently active segment has finished playing.
It should also be called immediately after setActiveSegmentIndex() has been called if playback of the active segment is not supported by the renderer.
Must be called with the last segment index passed to SyncMediaObjectRendererRuntime.setActiveSegmentIndex() or seekToTimelinePosition().
If the SyncMediaObjectRendererRuntime implementation calls this method with a segment index that has not yet been set active, the call is ignored.
Called by the SyncMediaObjectRendererRuntime if it wants to resume playback, for example because of a user interaction.
MAY be called continuously by the renderer indicating its current position on the timeline. The SyncMediaObjectRendererRuntime MAY report segmentIndex and offset further ahead than the current active segment during continuous playback.
Called by the renderer when it has reached the end of a range set by playUntilRangeEnd()
.
The renderer MUST internally pause at the exact position of the endPosition, but MUST NOT call
onRuntimePaused().
Called by the SyncMediaObjectRendererRuntime when its pause state changes due to a user interaction causing the playback to stop. This method SHOULD NOT be called if the renderer runtime pauses due to an error, or if the pause() method is called.
Called by the SyncMediaObjectRendererRuntime when its ready state changes from waiting to ready. This means that it has enough data to perform continuous playback.
The SyncMediaObjectRendererRuntime MUST wait for a call to play() before resuming playback.
Called by the SyncMediaObjectRendererRuntime when its ready state changes from ready to waiting. This means that it hasn't enough data to perform continuous playback.
The SyncMediaObjectRendererRuntime MUST internally pause its playback before calling this method.
Called by the renderer when it has received additional information about a segment's duration (such as after loading the media) and it does not match with the approximated value.
Called when a segment error occurs. If the renderer is unable to play the segment due to the error, the renderer should pause itself and set the paused flag to true. The renderer SHOULD NOT call onRuntimePaused().
The segment index that failed to load/play
The type of error that occurred.
An error object further describing the error.
If the error caused the renderer runtime to become paused.
Generated using TypeDoc
Used internally by the framework. Used by ISyncMediaObjectRendererRuntime to communicate with ISyncMediaPlayer.