canStop

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

Returns to the client whether playback can stop.

Return

true if playback can stop, false otherwise.

Parameters

playheadMs

The current playhead position, in milliseconds.

timeline

The stream timeline represented as an array of AdBreak objects