AdStreamManager

abstract class AdStreamManager

AdStreamManager is the base class for all stream managers. It defines a listener interface and the minimum functions needed for a stream manager to operate

Inheritors

Constructors

Link copied to clipboard
constructor(settings: AdManagerStreamingSettings?)

Types

Link copied to clipboard
interface Listener

The AdStreamManager.Listener interface defines the methods used to retrieve information about ad playback.

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.

Link copied to clipboard
open fun cleanup()
Link copied to clipboard
fun pause()

Pause the playback.

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

Play the stream or local resource.

Link copied to clipboard

Remove a listener from the listener list.

Link copied to clipboard
fun resume()

Resume playback.

Link copied to clipboard
open fun stop()

Stop playback and reset the player.