canPause

open override fun canPause(playheadMs: Long, timeline: MutableList<AdBreak>): Boolean

Returns to the client whether playback can pause.

Return

true if playback can pause, false otherwise.

Parameters

playheadMs

The current playhead position, in milliseconds.

timeline

The stream timeline represented as an array of AdBreak objects.