推流网络监听器
更多...
◆ onConnectFail()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onConnectFail |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onConnectionLost()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onConnectionLost |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onConnectionStatusChange()
◆ onLastMileDetectResultWithBandWidth()
◆ onLastMileDetectResultWithQuality()
◆ onNetworkPoor()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onNetworkPoor |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onNetworkQualityChanged()
推流网络状态变化回调
- 参数
-
upQuality | 上行网络质量 |
downQuality | 下行网络质量 |
- 注意
- 非互动模式暂不支持该API
- 注解
- 当对端网络质量发生变化时触发 network quality changed callback
- 参数
-
upQuality | up network quality |
downQuality | down network quality |
- 注意
- This API is only supported in the interactive mode currently
- 注解
- Triggered when peer network quality changes.
在文件 AlivcLivePushNetworkListener.java 第 125 行定义.
◆ onNetworkRecovery()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onNetworkRecovery |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
网络恢复通知
- 参数
-
- 注解
- 此回调表示当前主播网络恢复
◆ onPacketsLost()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPacketsLost |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
推流过程丢包回调
- 参数
-
- 注解
- 此回调表示网络原因导致音视频丢包
◆ onPushURLAuthenticationOverdue()
abstract String com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLAuthenticationOverdue |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
鉴权过期
- 参数
-
- 返回
- 新的重新生成鉴权URL的推流URL
- 注解
- 此回调表示当前推流URL鉴权过期,需要给SDK传递一个新的URL
◆ onPushURLTokenExpired()
void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLTokenExpired |
( |
AlivcLivePusher |
pusher | ) |
|
◆ onPushURLTokenWillExpire()
void com.alivc.live.pusher.AlivcLivePushNetworkListener.onPushURLTokenWillExpire |
( |
AlivcLivePusher |
pusher | ) |
|
◆ onReconnectFail()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectFail |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onReconnectStart()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectStart |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
重连开始
- 参数
-
- 注解
- 此回调表示当前推流链接断开,正在开始重连
◆ onReconnectSucceed()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onReconnectSucceed |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onSendDataTimeout()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onSendDataTimeout |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |
◆ onSendMessage()
abstract void com.alivc.live.pusher.AlivcLivePushNetworkListener.onSendMessage |
( |
AlivcLivePusher |
pusher | ) |
|
|
abstract |