public static abstract class RemoteConnection.VideoProvider.Callback
extends Object
java.lang.Object | |
↳ | android.telecom.RemoteConnection.VideoProvider.Callback |
RemoteConnection.VideoProvider
用来从 Connection.VideoProvider
中继事件的回叫类。
Public constructors |
|
---|---|
RemoteConnection.VideoProvider.Callback() |
Inherited methods |
|
---|---|
From class java.lang.Object
|
RemoteConnection.VideoProvider.Callback ()
void onCallDataUsageChanged (RemoteConnection.VideoProvider videoProvider, long dataUsage)
报告从与 Connection.VideoProvider
关联的 RemoteConnection
收到的数据使用情况(以字节为单位)的 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
dataUsage |
long : The updated data usage (in bytes). |
void onCallSessionEvent (RemoteConnection.VideoProvider videoProvider, int event)
报告从与 Connection.VideoProvider
相关联的 RemoteConnection
收到的呼叫会话事件。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
event |
int : The event. |
void onCameraCapabilitiesChanged (RemoteConnection.VideoProvider videoProvider, VideoProfile.CameraCapabilities cameraCapabilities)
报告在当前摄像机的能力发生改变,从接收 Connection.VideoProvider
与相关 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
cameraCapabilities |
VideoProfile.CameraCapabilities : The changed camera capabilities. |
void onPeerDimensionsChanged (RemoteConnection.VideoProvider videoProvider, int width, int height)
报告从与 Connection.VideoProvider
关联的 RemoteConnection
收到的对等视频尺寸的 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
width |
int : The updated peer video width. |
height |
int : The updated peer video height. |
void onSessionModifyRequestReceived (RemoteConnection.VideoProvider videoProvider, VideoProfile videoProfile)
报告从接收到的会话修改请求 Connection.VideoProvider
与相关联 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
videoProfile |
VideoProfile : The requested video call profile. |
void onSessionModifyResponseReceived (RemoteConnection.VideoProvider videoProvider, int status, VideoProfile requestedProfile, VideoProfile responseProfile)
报告从接收到会话修改响应 Connection.VideoProvider
与相关联 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
status |
int : Status of the session modify request. |
requestedProfile |
VideoProfile : The original request which was sent to the peer device. |
responseProfile |
VideoProfile : The actual profile changes made by the peer device. |
void onVideoQualityChanged (RemoteConnection.VideoProvider videoProvider, int videoQuality)
报告从接收到的视频质量的变化 Connection.VideoProvider
与相关 RemoteConnection
。
Parameters | |
---|---|
videoProvider |
RemoteConnection.VideoProvider : The RemoteConnection.VideoProvider invoking this method. |
videoQuality |
int : The updated peer video quality. |