NERtc Android SDK 4.6.10
|
Public Member Functions | |
abstract void | onJoinChannel (int result, long channelId, long elapsed, long uid) |
abstract void | onLeaveChannel (int result) |
abstract void | onUserJoined (long uid) |
abstract void | onUserLeave (long uid, int reason) |
abstract void | onUserAudioStart (long uid) |
abstract void | onUserAudioStop (long uid) |
abstract void | onUserVideoStart (long uid, int maxProfile) |
abstract void | onUserVideoStop (long uid) |
abstract void | onDisconnect (int reason) |
abstract void | onError (int code) |
void | onClientRoleChange (int oldRole, int newRole) |
void | onUserSubStreamVideoStart (long uid, int maxProfile) |
void | onUserSubStreamVideoStop (long uid) |
void | onUserAudioMute (long uid, boolean muted) |
void | onUserVideoMute (long uid, boolean muted) |
void | onFirstAudioDataReceived (long uid) |
void | onFirstVideoDataReceived (long uid) |
void | onFirstAudioFrameDecoded (long userID) |
void | onFirstVideoFrameDecoded (long userID, int width, int height) |
void | onUserVideoProfileUpdate (long uid, int maxProfile) |
void | onAudioDeviceChanged (final int selected) |
void | onAudioDeviceStateChange (int deviceType, int deviceState) |
void | onVideoDeviceStageChange (int deviceState) |
void | onConnectionTypeChanged (int newConnectionType) |
void | onReconnectingStart () |
void | onReJoinChannel (int result, long channelId) |
void | onAudioMixingStateChanged (int reason) |
void | onAudioMixingTimestampUpdate (long timestampMs) |
void | onAudioEffectFinished (int effectId) |
void | onLocalAudioVolumeIndication (int volume) |
void | onRemoteAudioVolumeIndication (NERtcAudioVolumeInfo[] volumeArray, int totalVolume) |
void | onLiveStreamState (String taskId, String pushUrl, int liveState) |
void | onConnectionStateChanged (int state, int reason) |
void | onCameraFocusChanged (Rect rect) |
void | onCameraExposureChanged (Rect rect) |
void | onRecvSEIMsg (long userID, String seiMsg) |
void | onAudioRecording (int code, String filePath) |
void | onWarning (int code) |
void | onMediaRelayStatesChange (int state, String channelName) |
void | onMediaRelayReceiveEvent (int event, int code, String channelName) |
void | onLocalPublishFallbackToAudioOnly (boolean isFallback, NERtcVideoStreamType streamType) |
void | onRemoteSubscribeFallbackToAudioOnly (long uid, boolean isFallback, NERtcVideoStreamType streamType) |
void | onLastmileQuality (int quality) |
void | onLastmileProbeResult (LastmileProbeResult result) |
Public Member Functions inherited from com.netease.lava.nertc.sdk.NERtcCallbackEx | |
void | onUserSubStreamVideoStart (long uid, int maxProfile) |
void | onUserSubStreamVideoStop (long uid) |
void | onUserAudioMute (long uid, boolean muted) |
void | onUserVideoMute (long uid, boolean muted) |
void | onFirstAudioDataReceived (long uid) |
void | onFirstVideoDataReceived (long uid) |
void | onFirstAudioFrameDecoded (long userID) |
void | onFirstVideoFrameDecoded (long userID, int width, int height) |
void | onUserVideoProfileUpdate (long uid, int maxProfile) |
void | onAudioDeviceChanged (final int selected) |
void | onAudioDeviceStateChange (int deviceType, int deviceState) |
void | onVideoDeviceStageChange (int deviceState) |
void | onConnectionTypeChanged (int newConnectionType) |
void | onReconnectingStart () |
void | onReJoinChannel (int result, long channelId) |
void | onAudioMixingStateChanged (int reason) |
void | onAudioMixingTimestampUpdate (long timestampMs) |
void | onAudioEffectFinished (int effectId) |
void | onLocalAudioVolumeIndication (int volume) |
void | onLocalAudioVolumeIndication (int volume, boolean vadFlag) |
void | onRemoteAudioVolumeIndication (NERtcAudioVolumeInfo[] volumeArray, int totalVolume) |
void | onLiveStreamState (String taskId, String pushUrl, int liveState) |
void | onConnectionStateChanged (int state, int reason) |
void | onCameraFocusChanged (Rect rect) |
void | onCameraExposureChanged (Rect rect) |
void | onRecvSEIMsg (long userID, String seiMsg) |
void | onAudioRecording (int code, String filePath) |
void | onError (int code) |
void | onWarning (int code) |
void | onMediaRelayStatesChange (int state, String channelName) |
void | onMediaRelayReceiveEvent (int event, int code, String channelName) |
void | onLocalPublishFallbackToAudioOnly (boolean isFallback, NERtcVideoStreamType streamType) |
void | onRemoteSubscribeFallbackToAudioOnly (long uid, boolean isFallback, NERtcVideoStreamType streamType) |
void | onLastmileQuality (int quality) |
void | onLastmileProbeResult (LastmileProbeResult result) |
void | onMediaRightChange (boolean isAudioBannedByServer, boolean isVideoBannedByServer) |
void | onVirtualBackgroundSourceEnabled (boolean enabled, int reason) |
void | onUserSubStreamAudioStart (long uid) |
void | onUserSubStreamAudioStop (long uid) |
void | onUserSubStreamAudioMute (long uid, boolean muted) |
void | onLocalVideoWatermarkState (NERtcVideoStreamType videoStreamType, int state) |
void | onJoinChannel (int result, long channelId, long elapsed, long uid) |
void | onLeaveChannel (int result) |
void | onUserJoined (long uid) |
void | onUserLeave (long uid, int reason) |
void | onUserAudioStart (long uid) |
void | onUserAudioStop (long uid) |
void | onUserVideoStart (long uid, int maxProfile) |
void | onUserVideoStop (long uid) |
void | onDisconnect (int reason) |
void | onClientRoleChange (int oldRole, int newRole) |
A simple implement for NERtcCallbackEx
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioDeviceChanged | ( | final int | selected | ) |
Occurs when the audio device is changed.
selected | indicates the selected device. For more information, see NERtcConstants.AudioDevice . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioDeviceStateChange | ( | int | deviceType, |
int | deviceState | ||
) |
Occurs when the state of the audio device is changed.
deviceType | indicates the type of the device. For more information, see NERtcConstants.AudioDeviceType . |
deviceState | indicates the state of the audio device. For more information, see NERtcConstants.AudioDeviceState . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioEffectFinished | ( | int | effectId | ) |
Occurs when a music file finishes playing.
effectId | indicates the ID of the specified audio effect. Each audio effect has a unique ID. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioMixingStateChanged | ( | int | reason | ) |
Occurs when the state of the operation on a local music file is changed.
If you call the startAudioMixing method to play a mixing music file and the state of the playing operation changes, the callback is triggered.
reason | NERtcConstants.AudioMixingError#AUDIO_MIXING_FINISH indicates the music file finishes playing. Other status codes indicate that playing the music file fails. For more information, see NERtcConstants.AudioMixingError . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioMixingTimestampUpdate | ( | long | timestampMs | ) |
Occurs when the timestamp of a playing music file is updated.
If you call the startAudioMixing method to play a mixing music file and the progress of the playing operation changes, the callback is triggered.
timestampMs | indicates the progress of the music file playing. Unit: milliseconds. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onAudioRecording | ( | int | code, |
String | filePath | ||
) |
Occurs when displaying the state of audio recording.
code | indicates the status code of the audio recording. For more information, see NERtcConstants.AudioRecordingCode . |
filePath | indicates the path based on which the recording file is stored. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onCameraExposureChanged | ( | Rect | rect | ) |
Occurs when the camera exposure position changes.
The callback is triggered if a local user calls the setCameraExposurePosition method to change the exposure position.
rect | indicates the new exposure position. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onCameraFocusChanged | ( | Rect | rect | ) |
Occurs when the camera focus position changes.
The callback indicates that the camera focus position changes.
The callback is triggered if a local user calls the setCameraFocusPosition method to change focus position.
rect | indicates the new focus position. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onClientRoleChange | ( | int | oldRole, |
int | newRole | ||
) |
Occurs when a user changes the role in live streaming.
After the user joins a room, the user can call the setClientRole method to change roles. Then, the callback is triggered. For example, switching from host to audience, or from audience to host.
oldRole | indicates the role before the change. For more information, see NERtcConstants.UserRole . |
newRole | indicates the role after the change. For more information, see NERtcConstants.UserRole . |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onConnectionStateChanged | ( | int | state, |
int | reason | ||
) |
* * Occurs when the channel connection state is changed. *
The callback is triggered when the channel connection state is changed. The callback returns the current channel connection state and the reason why the state changes. *
state | indicates the channel connection state. For more information, see NERtcConstants.ConnectionState . * |
reason | indicates the reason why the channel state changes. For more information, see NERtcConstants.ConnectionStateChangeReason . * * |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onConnectionTypeChanged | ( | int | newConnectionType | ) |
Occurs when the local network type is changed.
If the connection type of the local network changes, the callback is triggered and returns the network connection type that is being used.
newConnectionType | indicates the current local network type. For more information, see NERtcConstants.ConnectionType . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
|
abstract |
Indicates that connection breaks down and the SDK fails to connect to the server three consecutive times.
reason | indicates the reason for network disconnection. For more information, see NERtcConstants.ErrorCode . |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
|
abstract |
Occurs when an error occurs.
The callback is triggered to report an error related to network or media during SDK runtime.
In most cases, the SDK cannot fix the issue and resume running. The SDK requires the app to take action or informs the user about the issue.
code | NERtcConstants.RuntimeError |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onFirstAudioDataReceived | ( | long | uid | ) |
Occurs when the first audio frame from a remote user is received.
uid | indicates the ID of a remote user whose audio streams are sent. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onFirstAudioFrameDecoded | ( | long | userID | ) |
Occurs when the first audio frame from a remote user is decoded.
userID | indicates the ID of a remote user whose audio streams are sent. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onFirstVideoDataReceived | ( | long | uid | ) |
Occurs when the first video frame from a remote user is received.
If the first video frame from a remote user is displayed in the view, the callback is triggered.
uid | indicates the ID of a remote user whose audio streams are sent. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onFirstVideoFrameDecoded | ( | long | userID, |
int | width, | ||
int | height | ||
) |
Occurs when the first video frame from a remote user is received.
If the engine receives the first frame of remote video streams, the callback is triggered. The callback allows the app to set the video canvas.
userID | indicates the ID of a remote user whose video streams are sent. |
width | indicates the width of the first video frame. Unit: px. |
height | indicates the height of the first video frame. Unit: px. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
|
abstract |
Occurs when a user joins a room. The callback indicates that the client has already signed in.
result | A value of 0 indicates that a user joins a room. Otherwise, the user fails to join a room. For more information, see NERtcConstants.ErrorCode . |
channelId | The ID of the room that the client joins. |
elapsed | The time consumed from calling the joinChannel method to the time when the event occurs. Unit: milliseconds. |
uid | User ID. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onLastmileProbeResult | ( | LastmileProbeResult | result | ) |
Reports the last-mile network probe result.
This callback describes a detailed last-mile network detection report of a local user before joining a channel. The report provides objective data about the upstream and downstream network quality, including network jitter and packet loss rate. You can use the report to objectively predict the network status of local users during an audio and video call.
The SDK triggers this callback within 30 seconds after the app calls the startLastmileProbeTest method.
result | The uplink and downlink last-mile network probe test result. For more information, see LastmileProbeResult . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onLastmileQuality | ( | int | quality | ) |
Reports the last mile network quality of the local user once every two seconds before the user joins the channel.
After the application calls the startLastmileProbeTest method, this callback reports once every five seconds the uplink and downlink last mile network conditions of the local user before the user joins the channel.
quality | The last mile network quality.
|
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
|
abstract |
Occurs when a user leaves a room.
After an app calls the leaveChannel method, SDK prompts whether the app successfully exits the room.
result | 0 indicates success. Other values indicate failure. For more information about error codes, see NERtcConstants.ErrorCode . When a user switches rooms, the code parameter takes NERtcConstants.ErrorCode::LEAVE_CHANNEL_FOR_SWITCH. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onLiveStreamState | ( | String | taskId, |
String | pushUrl, | ||
int | liveState | ||
) |
Occurs when the state of live streams is changed.
taskId | indicates the ID of the push task. |
pushUrl | indicates the URL of the push task. |
liveState | indicates the state of live streams. For more information, see NERtcConstants.LiveStreamState . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onLocalAudioVolumeIndication | ( | int | volume | ) |
Occurs when the system prompts the current local audio volume.
By default, the callback is disabled. You can enable the callback by calling the enableAudioVolumeIndication method. After the callback is enabled, if a local user speaks, the SDK triggers the callback based on the time interval specified in the enableAudioVolumeIndication method.
volume | indicates the audio volume. Value range: 0 to 100. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onLocalPublishFallbackToAudioOnly | ( | boolean | isFallback, |
NERtcVideoStreamType | streamType | ||
) |
Occurs when the published local media stream falls back to an audio-only stream due to poor network conditions or switches back to audio and video stream after the network conditions improve.
If you call setLocalPublishFallbackOption and set the option to AUDIO_ONLY, this callback is triggered when the locally published stream falls back to the audio-only mode due to poor upstream network conditions, or when the audio stream switches back to the audio and video stream after the upstream network conditions improve.
isFallback | indicates that the locally published stream falls back to the audio-only mode or switches back to audio and video stream.
|
streamType | indicates the type of the video stream, such as mainstream and secondary stream. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onMediaRelayReceiveEvent | ( | int | event, |
int | code, | ||
String | channelName | ||
) |
Reports events during the media stream relay.
event | indicates the media stream relay event. For more information, see NERtcConstants.ChannelMediaRelayEvent . |
code | indicates an error code. For more information, see NERtcConstants.ErrorCode . |
channelName | the name of the destination room where the media streams are forwarded. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onMediaRelayStatesChange | ( | int | state, |
String | channelName | ||
) |
Occurs when the state of the media stream relay changes.
state | indicates the state of the media stream relay. For more information, see NERtcConstants.ChannelMediaRelayState . |
channelName | the name of the destination room where the media streams are forwarded. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onReconnectingStart | ( | ) |
Occurs when reconnection starts.
If a client is disconnected from the server, the SDK starts reconnecting. The callback is triggered when the reconnection starts. For more information about reconnection, see onReJoinChannel and onDisconnect.
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onRecvSEIMsg | ( | long | userID, |
String | seiMsg | ||
) |
Occurs when the content of remote Supplemental Enhancement Information (SEI) is received.
After a remote client successfully sends SEI, the local client receives a message returned by the callback.
userID | indicates the ID of the user that sends SEI. |
seiMsg | indicates the message that contains SEI. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onReJoinChannel | ( | int | result, |
long | channelId | ||
) |
Occurs when a user rejoins a room.
If a client is disconnected from the server due to poor network quality, the SDK starts reconnecting. If the client and server are reconnected, the callback is triggered.
result | A value of 0 indicates success. Other values indicate that the user fails to rejoin the room. For more information about error codes, see NERtcConstants.ErrorCode . |
channelId | indicates the ID of the room that the client joins. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onRemoteAudioVolumeIndication | ( | NERtcAudioVolumeInfo[] | volumeArray, |
int | totalVolume | ||
) |
Occurs when the system prompts the active speaker and the audio volume.
By default, the callback is disabled. You can enable the callback by calling the enableAudioVolumeIndication method. After the callback is enabled, if a local user speaks, the SDK triggers the callback based on the time interval specified in the enableAudioVolumeIndication method.
In the returned array:
volumeArray | indicates the array that contains the information about user IDs and volumes. For more information, see stats.NERtcAudioVolumeInfo . |
totalVolume | indicates the volume of mixed audio. Value range: 0 to 100. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onRemoteSubscribeFallbackToAudioOnly | ( | long | uid, |
boolean | isFallback, | ||
NERtcVideoStreamType | streamType | ||
) |
Occurs when the subscribed remote media stream falls back to audio-only stream due to poor network conditions or switches back to video stream after the network conditions improve.
If you call setRemoteSubscribeFallbackOption and set the option to AUDIO_ONLY, this callback is triggered when the subscribed remote media stream falls back to the audio-only mode due to poor downstream network conditions, or when the subscribed remote media stream switches back to the audio and video stream after the downstream network conditions improve.
uid | indicates the ID of a remote user. |
isFallback | indicates that the subscribed remote media stream falls back to the audio-only mode or switches back to the audio and video stream.
|
streamType | indicates the type of the video stream, such as mainstream and secondary stream. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onUserAudioMute | ( | long | uid, |
boolean | muted | ||
) |
Occurs when a remote user stops/resumes sending audio streams.
uid | indicates the ID of the user whose audio streams are sent. |
muted | specifies whether to stop sending audio streams.
|
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
|
abstract |
Occurs when a remote user enables audio.
uid | indicates the ID of the user that leaves the room. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
|
abstract |
Occurs when a remote user disables audio.
uid | indicates the ID of the user that leaves the room. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
|
abstract |
Occurs when a remote user joins the current room.
The callback function prompts that a remote user joins the room and returns the ID of the user that joins the room. If the user ID already exists, the remote user also receives a message that the user already joins the room, which is returned by the callback function.
The callback function will be triggered in the following cases:
uid | indicates the ID of the user that joins the room. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
|
abstract |
Occurs when a remote user leaves a room.
Prompts that a remote user leaves the room or becomes disconnected.
A user leaves a room due to the following reasons: the user exit the room or connections time out.
uid | indicates the ID of the user that leaves the room. |
reason | The reason why user leaves the channel. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onUserSubStreamVideoStart | ( | long | uid, |
int | maxProfile | ||
) |
Occurs when a remote user enables screen sharing substream channel.
uid | indicates the ID of a remote user. |
maxProfile | indicates the resolution of the remote video. For more information, see NERtcConstants.VideoProfile . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onUserSubStreamVideoStop | ( | long | uid | ) |
Occurs when a remote user stops screen sharing using the substream channel.
uid | indicates the ID of a remote user. |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onUserVideoMute | ( | long | uid, |
boolean | muted | ||
) |
Occurs when a remote user stops or resumes sending video streams.
uid | indicates the ID of the user whose video streams are sent. |
muted | specifies whether to stop sending video streams.
|
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onUserVideoProfileUpdate | ( | long | uid, |
int | maxProfile | ||
) |
Occurs when the profile of the video streams from a remote user is updated.
uid | indicates the ID of a remote user. |
maxProfile | sets the video parameters. For more information, see NERtcConstants.VideoProfile . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
|
abstract |
Occurs when a remote user enables video.
uid | indicates the ID of the user that sends the video streams. |
maxProfile | sets the video parameters. For more information, see NERtcConstants.VideoProfile . |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
|
abstract |
Occurs when a remote user disables video.
uid | indicates the ID of a remote user. |
Implements com.netease.lava.nertc.sdk.NERtcCallback.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onVideoDeviceStageChange | ( | int | deviceState | ) |
Occurs when the state of the video device is changed.
The callback returns that the state of the video device changes. For example, the device is unplugged or removed. If an external camera that the device uses is unplugged, the video streaming is interrupted.
deviceState | indicates the state of the audio device. For more information, see NERtcConstants.VideoDeviceState . |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.
void com.netease.lava.nertc.sdk.AbsNERtcCallbackEx.onWarning | ( | int | code | ) |
Reports an error.
The callback is triggered to report a warning related to network or media during SDK runtime.
In most cases, the app ignores the warning message and the SDK resumes running.
code | indicates the waring code. NERtcConstants.WarningCode |
Implements com.netease.lava.nertc.sdk.NERtcCallbackEx.