MuxStatsSdkMedia3

class MuxStatsSdkMedia3<P : Player> @JvmOverloads constructor(context: Context, envKey: String, customerData: CustomerData, player: P, playerView: View? = null, customOptions: CustomOptions? = null, playerBinding: MuxPlayerAdapter.PlayerBinding<P>) : MuxDataSdk<P, View>

TODO: doc out of date Monitors a generic Player with Mux Data, reporting data about the View to the environment specified by the env key.

Parameters

context

a Context containing your player. If it's an Activity, screen size is obtained

envKey

your Mux Data Environment Key

customerData

data about you, your customer, and your video

player

the player you wish to observe

playerView

the View showing your video content

customOptions

Options that affect the behavior of the SDK

playerBinding

a MuxPlayerAdapter.PlayerBinding that can observe the state of your player

P

The type of player being monitored.

Constructors

Link copied to clipboard
constructor(context: Context, envKey: String, customerData: CustomerData, player: P, playerView: View? = null, customOptions: CustomOptions? = null, playerBinding: MuxPlayerAdapter.PlayerBinding<P>)

Functions

Link copied to clipboard
open fun dispatch(event: IEvent?)
Link copied to clipboard
open fun enableMuxCoreDebug(enable: Boolean, verbose: Boolean)
Link copied to clipboard
open fun error(exception: MuxErrorException)
Link copied to clipboard
open fun getCustomerData(): CustomerData
Link copied to clipboard
open fun orientationChange(orientation: MuxSDKViewOrientation)
Link copied to clipboard
Link copied to clipboard
open fun programChange(videoData: CustomerVideoData)
Link copied to clipboard
open fun release()
Link copied to clipboard
Link copied to clipboard
open fun setPlayerSize(widthPx: Int, heightPx: Int)
Link copied to clipboard
open fun setPlayerView(view: View?)
Link copied to clipboard
open fun setScreenSize(widthPx: Int, heightPx: Int)
Link copied to clipboard
open fun updateCustomerData(customerData: CustomerData)
Link copied to clipboard
open fun videoChange(videoData: CustomerVideoData)

Properties

Link copied to clipboard

Collects events related to ad playback and reports them. If you are using Google IMA, you don't need to interact with this class directly. Instead, use the media3-ima library provided by Mux (TODO: Doc link)

Link copied to clipboard

The player bound to this object