MUX

Observe playback analytics with MUX

Start monitoring
let playerData = DorisMuxCustomerPlayerData(playerName: "MyPlayer", environmentKey: "key")
playerData.playerVersion = "1.0.0"

let videoData = DorisMuxCustomerVideoData()
videoData.videoId = "323"
videoData.videoIsLive = true
videoData.videoTitle = "Title"

let customData = DorisMuxCustomData()
customData.customData1 = "test"

let shoulUpdate = false //true if you want to update data for currently playing stream multiple times

avDoris.startMuxMonitoring(playerData: playerData, videoData: videoData, customData: customData, shouldUpdate: shoulUpdate)
Stop monitoring
avDoris.stopMuxMonitoring()

Note

MUST call this after you are done with your player to avoid retain cycles

Doris