BroadpeakPlayer

The specialization of AdComposedPlayer that plays Broadpeak curated ads.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var adSessionId: String?
Link copied to clipboard
abstract var audioVolume: Float
Link copied to clipboard
Link copied to clipboard
abstract val broadpeakSessionResult: Result<StreamingSession, Error>?

The session initialization result for Broadpeak server-side ad insertion. This property provides access to the underlying StreamingSession instance (if available), which handles the communication and state management with the Broadpeak ad server. If the session initialization fails, the result value for the StreamingSession will be null and the result value for the Error will provide more details about the failure. There might be also a case when session initialization is successful but the call to generate the session URL fails. In this case, the result value for the StreamingSession will be available and the result value for the Error will contain the failure details.

Link copied to clipboard
Link copied to clipboard
abstract val contentPlayer: Player

Main content Player instance.

Link copied to clipboard
abstract val contentURL: String
Link copied to clipboard
abstract val currentEpochTimeMs: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var deviceAudioVolume: Int
Link copied to clipboard
abstract var drmDelegate: DRMDelegate?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val playerView: FrameLayout?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var resizeMode: ResizeMode
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val subtitleView: FrameLayout?

Functions

Link copied to clipboard
open fun abort(error: Error)
Link copied to clipboard
Link copied to clipboard
abstract fun addListener(listener: Player.Listener)
Link copied to clipboard
open fun addMediaPlaylistItem(mediaPlaylistItem: MediaPlaylistItem)
Link copied to clipboard
open fun addMediaPlaylistItemAt(index: Int, mediaPlaylistItem: MediaPlaylistItem)
Link copied to clipboard
open fun addMediaPlaylistItems(mediaPlaylistItems: List<MediaPlaylistItem>)
Link copied to clipboard
open fun addMediaPlaylistItemsAt(index: Int, mediaPlaylistItems: List<MediaPlaylistItem>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun discardAdBreak()
Link copied to clipboard
open fun forEachAdListener(action: (AdEventListener) -> Unit)
Link copied to clipboard
open fun getCuePoints(): List<Long>
Link copied to clipboard
open fun getMaxSupportedSecuredDecoderInstances(mimeType: String, tunnelingMode: Boolean): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getRawPlayer(): Any?
Link copied to clipboard
open fun getThumbnail(positionMs: Long, callback: Player.ThumbnailCallback)
open suspend fun getThumbnail(positionMs: Long, thumbnailHandler: (result: Bitmap?) -> Unit)
Link copied to clipboard
open fun getThumbnailUrl(positionMs: Long): String?
Link copied to clipboard
Link copied to clipboard
open fun isLive(): Boolean
Link copied to clipboard
open fun isPlayingAd(): Boolean
Link copied to clipboard
open fun load()
Link copied to clipboard
open fun moveMediaPlaylistItem(currentIndex: Int, newIndex: Int)
Link copied to clipboard
open fun pause()
Link copied to clipboard
open fun play()
Link copied to clipboard
open fun registerAdListener(adListener: AdEventListener)
Link copied to clipboard
Link copied to clipboard
open fun removeListener(listener: Player.Listener)
Link copied to clipboard
open fun removeMediaPlaylistItem(index: Int)
Link copied to clipboard
open fun removeMediaPlaylistItems(fromIndex: Int, toIndex: Int)
Link copied to clipboard
open fun replaceMediaPlaylistItem(index: Int, mediaPlaylistItem: MediaPlaylistItem)
Link copied to clipboard
open fun seek(seekPoint: Long, seekPreference: SeekPreference?)
Link copied to clipboard
open fun seekBack()
Link copied to clipboard
open fun seekForward()
Link copied to clipboard
open fun seekTo(mediaItemIndex: Int, positionMs: Long)
Link copied to clipboard
open fun seekToLiveEdge()
Link copied to clipboard
Link copied to clipboard
open fun send(streamTimelineEvent: StreamTimelineEvent, suggestedAction: Action, streamTimelineMetadata: StreamTimelineMetadata?)
Link copied to clipboard
open fun setCuePoints(cuePoints: List<Long>)
Link copied to clipboard
open fun setCurrentPlayingIndex(index: Int)
Link copied to clipboard
open fun setMediaPlaylistItem(mediaPlaylistItem: MediaPlaylistItem)
Link copied to clipboard
open fun setPreferredAudioLanguage(audioLanguageInfo: AudioLanguageInfo)
Link copied to clipboard
open fun setPreferredBitrateThresholds(maxBitrate: Int, minBitrate: Int)
Link copied to clipboard
open fun setPreferredMimeTypes(type: TrackVariantInfo.Type, preferredMimeTypes: Array<String>)
Link copied to clipboard
Link copied to clipboard
open fun setPreferredSubtitleLanguage(languageCode: String)
Link copied to clipboard
Link copied to clipboard
open fun setRepeatMode(enableRepeatMode: Boolean, repeatTimeline: Boolean)
Link copied to clipboard
open fun setShuffleMode(enableShuffleMode: Boolean, shuffledIndices: IntArray?, randomSeed: Long?)
Link copied to clipboard
open fun skipAd()
Link copied to clipboard
open fun stop()
Link copied to clipboard
Link copied to clipboard
open fun updateMediaMetadata(mediaMetadata: MediaMetadata)