Agora Java API Reference for Android
|
Public Member Functions | |
void | onConnectionStateChanged (AgoraRteSceneConnState oldState, AgoraRteSceneConnState newState, AgoraRteConnectionChangedReason reason) |
void | onRemoteUserJoined (List< AgoraRteUserInfo > users) |
void | onRemoteUserLeft (List< AgoraRteUserInfo > users) |
void | onRemoteStreamAdded (List< AgoraRteMediaStreamInfo > streams) |
void | onRemoteStreamRemoved (List< AgoraRteMediaStreamInfo > streams) |
void | onLocalStreamStateChanged (AgoraRteMediaStreamInfo streamInfo, AgoraRteMediaType mediaType, AgoraRteStreamMediaState oldState, AgoraRteStreamMediaState newState, AgoraRteStreamStateChangedReason reason) |
void | onRemoteStreamStateChanged (AgoraRteMediaStreamInfo streamInfo, AgoraRteMediaType mediaType, AgoraRteStreamMediaState oldState, AgoraRteStreamMediaState newState, AgoraRteStreamStateChangedReason reason) |
void | onAudioVolumeIndication (List< AgoraRteAudioVolumeInfo > speakers, int totalVolume) |
void | onSceneTokenWillExpire (String speedId, String token) |
void | onSceneTokenExpired (String sceneId) |
void | onStreamTokenWillExpire (String streamId, String token) |
void | onStreamTokenExpired (String streamId) |
void | onCloudCdnStateChanged (String streamId, String targetCdnUrl, AgoraRteCloudCdnStreamPublishState state, AgoraRteCloudCdnStreamPublishError errCode) |
void | onCloudCdnPublished (String streamId, String targetCdnUrl, AgoraRteCloudCdnStreamPublishError errCode) |
void | onCloudCdnUnpublished (String streamId, String targetCdnUrl) |
void | onCloudTranscodingUpdated (String streamId) |
void | onSceneStats (AgoraRteSceneStats stats) |
void | onLocalStreamAudioStats (String streamId, AgoraRteLocalAudioStats stats) |
void | onLocalStreamVideoStats (String streamId, AgoraRteLocalVideoStats stats) |
void | onRemoteStreamAudioStats (String streamId, AgoraRteRemoteAudioStats stats) |
void | onRemoteStreamVideoStats (String streamId, AgoraRteRemoteVideoStats stats) |
void | onLocalStreamEvent (String streamId, AgoraRteLocalStreamEventType event) |
void | onRemoteStreamEvent (String streamId, AgoraRteRemoteStreamEventType event) |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onConnectionStateChanged | ( | AgoraRteSceneConnState | oldState, |
AgoraRteSceneConnState | newState, | ||
AgoraRteConnectionChangedReason | reason | ||
) |
Occurs when the connection state changes.
oldState | The old connection state. |
newState | The new connection state. |
reason | The reason of the connection state change. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onRemoteUserJoined | ( | List< AgoraRteUserInfo > | users | ) |
Occurs when remote users join.
users | Joined remote users. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onRemoteUserLeft | ( | List< AgoraRteUserInfo > | users | ) |
Occurs when remote users left.
users | Left remote users. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onRemoteStreamAdded | ( | List< AgoraRteMediaStreamInfo > | streams | ) |
Occurs when remote streams are added.
streams | Added remote streams. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onRemoteStreamRemoved | ( | List< AgoraRteMediaStreamInfo > | streams | ) |
Occurs when remote streams are removed.
streams | Removed remote streams. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onLocalStreamStateChanged | ( | AgoraRteMediaStreamInfo | streamInfo, |
AgoraRteMediaType | mediaType, | ||
AgoraRteStreamMediaState | oldState, | ||
AgoraRteStreamMediaState | newState, | ||
AgoraRteStreamStateChangedReason | reason | ||
) |
Occurs when the media state of the local stream changes.
streamInfo | Information of the local stream. |
mediaType | Media type of the local stream. |
oldState | Old state of the local stream. |
newState | New state of the local stream. |
reason | The reason of the state change. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onRemoteStreamStateChanged | ( | AgoraRteMediaStreamInfo | streamInfo, |
AgoraRteMediaType | mediaType, | ||
AgoraRteStreamMediaState | oldState, | ||
AgoraRteStreamMediaState | newState, | ||
AgoraRteStreamStateChangedReason | reason | ||
) |
Occurs when the media state of the remote stream changes.
streamInfo | Information of the remote stream. |
mediaType | Media type of the remote stream. |
oldState | Old state of the remote stream. |
newState | New state of the remote stream. |
reason | The reason of the state change. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onAudioVolumeIndication | ( | List< AgoraRteAudioVolumeInfo > | speakers, |
int | totalVolume | ||
) |
Reports the volume information of users.
speakers | The volume information of users. |
totalVolume | Total volume after audio mixing. The value ranges between 0 (lowest volume) and 255 (highest volume). |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onSceneTokenWillExpire | ( | String | speedId, |
String | token | ||
) |
Occurs when the token will expire in 30 seconds for the user.
speedId | scene id |
token | The token that will expire in 30 seconds. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onSceneTokenExpired | ( | String | sceneId | ) |
Occurs when the token has expired for a user.
sceneId | The ID of the scene. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onStreamTokenWillExpire | ( | String | streamId, |
String | token | ||
) |
Occurs when the token of a stream expires in 30 seconds. If the token you specified when calling 'CreateOrUpdateRTCStream' expires, the user will drop offline. This callback is triggered 30 seconds before the token expires, to remind you to renew the token by calling 'createOrUpdateRTCStream' again with new token.
streamId | the stream id |
token | The token that will expire in 30 seconds. |
void io.agora.rte.scene.AgoraRteSceneEventHandler.onStreamTokenExpired | ( | String | streamId | ) |
Occurs when the token has expired for a stream. Upon receiving this callback, you must generate a new token on your server and call "createOrUpdateRTCStream" to pass the new token to the SDK.
streamId | The ID of the scene. |