Live push network listener.
More...
◆ onConnectFail()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onConnectFail |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
connect failed
- Parameters
-
◆ onConnectionLost()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onConnectionLost |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
connect lost
- Parameters
-
- Note
- This callback indicates that the stream is disconnected
◆ onConnectionStatusChange()
Network connection status change callback
- Parameters
-
pusher | pusher instance |
connectionStatus | Network connection status |
connectionStatusChangeReason | Reason for network status change |
- Attention
- This API is only supported in the interactive mode currently
Definition at line 174 of file AlivcLivePushNetworkListener.java.
◆ onLastMileDetectResultWithBandWidth()
Callback of network quality detection results
- Parameters
-
pusher | pusher instance |
code | Detection result, 0: Success, -1: DNS acquisition failed, -2: ICMP module initialization failed, -3: ICMP sending failed for a long time, -4: ICMP cannot receive (it is recommended to allow broadcasting) |
networkQualityProbeResult | The results of network detection |
- Attention
- This API is only supported in the interactive mode currently
- Note
- Suggestion for handling error codes:
-
1. If the -1, -2, and -3 error codes are directly thrown back, it can prevent the broadcast from starting;
-
2. Due to some specific networks that may be set to prevent network detection, an error code of -4 may be returned. To avoid detection errors that may cause broadcasters to be unable to start broadcasting, it is recommended to allow streaming to start by returning an error code of -4
-
This callback will be triggered after calling
com.alivc.live.pusher.AlivcLivePusher#startLastMileDetect(com.alivc.live.pusher.AlivcLiveNetworkQualityProbeConfig)
before starting streaming
Definition at line 162 of file AlivcLivePushNetworkListener.java.
◆ onLastMileDetectResultWithQuality()
◆ onNetworkPoor()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onNetworkPoor |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
network poor
- Parameters
-
- Note
- This callback indicates that the streamer has a poor network
◆ onNetworkQualityChanged()
◆ onNetworkRecovery()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onNetworkRecovery |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
network recovery
- Parameters
-
- Note
- This callback indicates that the streamer's network is recovered
◆ onPacketsLost()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPacketsLost |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
push packet loss
- Parameters
-
- Note
- The callback for audio/video packet loss due to network reasons
◆ onPushURLAuthenticationOverdue()
abstract String com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLAuthenticationOverdue |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
push url authentication is overdue
- Parameters
-
- Returns
- A new signed ingest URL is generated
- Note
- This callback indicates that the signed URL is about to expire. You need to pass a new signed URL to the SDK.
◆ onPushURLTokenExpired()
void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLTokenExpired |
( |
AlivcLivePusher |
pusher | ) |
|
◆ onPushURLTokenWillExpire()
void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLTokenWillExpire |
( |
AlivcLivePusher |
pusher | ) |
|
The token of the streaming URL is about to expire (this callback will be sent within 30s before expiration)
- Parameters
-
- Attention
- This API is only supported in the interactive mode currently
- Note
- This callback only takes effect in the interactive mode. The callback is triggered 30 seconds before the authentication information.
-
After receiving the callback, the URL of the new token should be passed to the SDK in time.
com.alivc.live.pusher.AlivcLivePusher#refreshPushURLToken(String)
}
Definition at line 121 of file AlivcLivePushNetworkListener.java.
◆ onReconnectFail()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectFail |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
reconnect failed
- Parameters
-
- Note
- This callback indicates that reconnection fails
◆ onReconnectStart()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectStart |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
reconnect start
- Parameters
-
- Note
- This callback indicates that the push stream is disconnected and being reconnected
◆ onReconnectSucceed()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectSucceed |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
reconnect success
- Parameters
-
- Note
- This callback indicates that reconnection is successful
◆ onSendDataTimeout()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onSendDataTimeout |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
send data timeout
- Parameters
-
- Note
- This callback indicates that data transmission times out
◆ onSendMessage()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onSendMessage |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |