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