SimulcastStreamer

class SimulcastStreamer(context: Context, token: String, isPlayer: Boolean, eventListener: SimulcastEventListener)

SimulcastStreamer class can be used to playback simulcast streams

Parameters

context

Application context is recommended

token

Simulcast token returned from the server when a stream is created

isPlayer

Initialize as a Player or just metadata listener/reporter.

eventListener

Event listener for the events sent out by the player.

Constructors

SimulcastStreamer
Link copied to clipboard
fun SimulcastStreamer(context: Context, token: String, isPlayer: Boolean, eventListener: SimulcastEventListener)

Types

Companion
Link copied to clipboard
object Companion

Functions

connect
Link copied to clipboard
fun connect()

Begin playing the stream

disconnect
Link copied to clipboard
fun disconnect()

Stop playing the stream

Properties

context
Link copied to clipboard
val context: Context
currentItem
Link copied to clipboard
var currentItem: Play? = null

Get currently playing item

currentTime
Link copied to clipboard
var currentTime: Float
isPlayer
Link copied to clipboard
val isPlayer: Boolean
state
Link copied to clipboard
val state: SimulcastPlaybackState

Get current state of Player

token
Link copied to clipboard
val token: String
volume
Link copied to clipboard
var volume: Float = 1.0F

Set volume of the stream