AdswizzAdStreamManager

AdswizzAdStreamManager handles interactive ad insertions, while playing HLS or ICY live streams from AdsWizz AIS servers. This is possible by reading the player's metadata for specific AdsWizz data and converting it to AdsWizz interactive formats or companion banners.

Constructors

Link copied to clipboard
constructor(settings: AdManagerStreamingSettings? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Add a listener to be called back on stream events. The listener is held as a strong reference; thus, the caller is responsible for releasing the reference.
listener: callback reference to be added

Link copied to clipboard

Cancels an ongoing DVRMetadata request. See requestDVRMetadata

Link copied to clipboard
open override fun cleanup()

Clean up AdswizzAdStreamManager.

Link copied to clipboard
fun pause()

Pause the playback.

Link copied to clipboard
open override fun play(url: String)

Play a stream. This function may throw a SDKError exception.
url: url of the stream to play

fun play(url: String, timestamp: Long)

Play a stream. This function may throw a SDKError exception.
url: url of the stream to play.
timestamp: position in the stream when dvr is enabled, otherwise is ignored

Link copied to clipboard

Remove a listener from the listener list.
listener: callback reference to be removed

Link copied to clipboard

This method fetches upcoming DVR frames generated by AIS servers.

Link copied to clipboard
fun resume()

Resume playback.

Link copied to clipboard
open fun stop()

Stop playback and reset the player.