IMediaHandler
The IMediaHandler class contains media-related event callbacks.
onVolumeUpdated
Indicates the volume change of a stream.
fun onVolumeUpdated(volume: Int, streamUuid: String)
Parameter
- volume
- The volume range.
- streamUuid
- The stream ID.
onLocalDeviceStateUpdated
Occurs when the local device state changes.
fun onLocalDeviceStateUpdated(deviceInfo: AgoraEduContextDeviceInfo, state: AgoraEduContextDeviceState2)
Parameter
- deviceInfo
- The device information. See AgoraEduContextDeviceInfo.
- state
- The device state. Ses AgoraEduContextDeviceState2.
onLocalDeviceConnected
Occurs when the local device is connected.
fun onLocalDeviceConnected(deviceInfo: AgoraEduContextDeviceInfo, state: AgoraEduContextDeviceState2)
Parameter
- deviceInfo
- The device information. See AgoraEduContextDeviceInfo.
- state
- The device state. Ses AgoraEduContextDeviceState2.
onLocalDeviceDisconnected
Occurs when the local device is disconnected.
fun onLocalDeviceDisconnected(deviceInfo: AgoraEduContextDeviceInfo, state: AgoraEduContextDeviceState2)
Parameter
- deviceInfo
- The device information. See AgoraEduContextDeviceInfo.
- state
- The device state. Ses AgoraEduContextDeviceState2.
onAudioMixingStateChanged
Occurs when the audio mixing state changes.
fun onAudioMixingStateChanged(state: Int, errorCode: Int)
Parameter
- state
- The audio mixing state code.
- errorCode
- The audio mixing error code.