DefaultPlaybackPolicyHandler
Reference implementation of PlaybackPolicyHandler
Functions
Link copied to clipboard
open override fun canChangeVolume(mute: Boolean, playheadMs: Long, timeline: MutableList<AdBreak>): Boolean
Returns to the client whether volume can be muted.
Link copied to clipboard
Returns to the client whether the user can click-through.
Link copied to clipboard
Returns to the client whether playback can pause.
Link copied to clipboard
open override fun canResizeCreative(expand: Boolean, playheadMs: Long, timeline: List<AdBreak>): Boolean
Returns to the client whether the currently-displayed linear creative can be expanded. Note that this method is not applicable to nonlinear creative.
Link copied to clipboard
Returns to the client whether playback can stop.
Link copied to clipboard
Sets the playback mode that the stream is running in. The policy handler implementation may use this to modify the policy for specific requests, for example allowing pause in VOD but not in Live playback.
Link copied to clipboard
open override fun willSeekTo(positionMs: Long, timeline: MutableList<AdBreak>?, playhead: Long): Long
Returns to the client the playhead position, in milliseconds, that the user can seek to.