You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Android/APIExample/lib-player-helper/src/main/cpp/include/AgoraBase.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -398,7 +398,8 @@ enum ERROR_CODE_TYPE {
398
398
/** 117: The data stream transmission timed out.
399
399
*/
400
400
ERR_STREAM_MESSAGE_TIMEOUT = 117,
401
-
/** 119: Switching roles fail. Please try to rejoin the channel.
401
+
/** **DEPRECATED** 119: Deprecated as of v3.6.1. Use CLIENT_ROLE_CHANGE_FAILED_REASON in the \ref agora::rtc::IRtcEngineEventHandler::onClientRoleChangeFailed "onClientRoleChangeFailed" callback instead.
402
+
* Switching roles fail. Please try to rejoin the channel.
402
403
*/
403
404
ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119,
404
405
/** 120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
Copy file name to clipboardExpand all lines: Android/APIExample/lib-player-helper/src/main/cpp/include/IAgoraRtcChannel.h
+49-4Lines changed: 49 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,9 +80,9 @@ class IChannelEventHandler {
80
80
}
81
81
/** Occurs when the user role switches in the interactive live streaming. For example, from a host to an audience or vice versa.
82
82
83
-
This callback notifies the application of a user role switch when the application calls the \ref IChannel::setClientRole "setClientRole" method.
83
+
This callback notifies the application of a user role switch when the application calls the \ref IChannel::setClientRole "setClientRole" method, and successfully changed role.
84
84
85
-
The SDK triggers this callback when the local user switches the user role by calling the \ref IChannel::setClientRole "setClientRole" method after joining the channel.
85
+
The SDK triggers this callback when the local user switches the user role by calling the \ref IChannel::setClientRole "setClientRole" method after joining the channel, and successfully changed role.
86
86
87
87
@param rtcChannel IChannel
88
88
@param oldRole Role that the user switches from: #CLIENT_ROLE_TYPE.
@@ -93,6 +93,21 @@ class IChannelEventHandler {
93
93
(void)oldRole;
94
94
(void)newRole;
95
95
}
96
+
97
+
/** Occurs when the user role switches in the interactive live streaming. For example, from a host to an audience or vice versa.
98
+
99
+
This callback notifies the application of a user role switch when the application calls the \ref IChannel::setClientRole "setClientRole" method, and failed to change role.
100
+
101
+
The SDK triggers this callback when the local user switches the user role by calling the \ref IChannel::setClientRole "setClientRole" method after joining the channel, and failed to change role.
102
+
@param reason The reason of changing client role failed. See #CLIENT_ROLE_CHANGE_FAILED_REASON.
103
+
@param currentRole Current Role that the user holds: #CLIENT_ROLE_TYPE.
/** Occurs when a remote user (`COMMUNICATION`)/ host (`LIVE_BROADCASTING`) joins the channel.
97
112
98
113
- `COMMUNICATION` profile: This callback notifies the application that another user joins the channel. If other users are already in the channel, the SDK also reports to the application on the existing users.
@@ -569,6 +584,21 @@ class IChannelEventHandler {
569
584
(void)state;
570
585
(void)reason;
571
586
}
587
+
588
+
/** Occurs when join success after calling \ref IRtcEngine::setLocalAccessPoint "setLocalAccessPoint" or \ref IRtcEngine::setCloudProxy "setCloudProxy"
589
+
@param rtcChannel IChannel
590
+
@param uid User ID of the user joining the channel.
591
+
@param proxyType type of proxy agora sdk connected, proxyType will be NONE_PROXY_TYPE if not connected to proxy(fallback).
592
+
@param localProxyIp local proxy ip list. if not join local proxy, it will be "".
593
+
@param elapsed Time elapsed (ms) from the user calling the \ref IRtcEngine::joinChannel "joinChannel" method until the SDK triggers this callback.
* call this method to switch the user role after joining a channel, the SDK automatically does the following:
888
918
* - Calls \ref IChannel::muteLocalAudioStream "muteLocalAudioStream" and \ref IChannel::muteLocalVideoStream "muteLocalVideoStream" to
889
919
* change the publishing state.
890
-
* - Triggers \ref IChannelEventHandler::onClientRoleChanged "onClientRoleChanged" on the local client.
920
+
* - Triggers \ref IChannelEventHandler::onClientRoleChanged "onClientRoleChanged" or \ref IChannelEventHandler::onClientRoleChangeFailed "onClientRoleChangeFailed" on the local client in 5s.
* call this method to switch the user role after joining a channel, the SDK automatically does the following:
921
951
* - Calls \ref IChannel::muteLocalAudioStream "muteLocalAudioStream" and \ref IChannel::muteLocalVideoStream "muteLocalVideoStream" to
922
952
* change the publishing state.
923
-
* - Triggers \ref IChannelEventHandler::onClientRoleChanged "onClientRoleChanged" on the local client.
953
+
* - Triggers \ref IChannelEventHandler::onClientRoleChanged "onClientRoleChanged" or \ref IChannelEventHandler::onClientRoleChangeFailed "onClientRoleChangeFailed" on the local client in 5s.
- This method is called before and after joining a channel.
1274
+
- Users check the WIFI router app for information about acceleration. Therefore, if this interface is invoked, the caller accepts that the caller's name will be displayed to the user in the WIFI router application on behalf of the caller.
0 commit comments