Most visited

Recently visited

Added in API level 23

RemoteConnection.VideoProvider

public static class RemoteConnection.VideoProvider
extends Object

java.lang.Object
   ↳ android.telecom.RemoteConnection.VideoProvider


RemoteConnection.VideoProvider与相关联RemoteConnection 用于接收视频相关事件并控制与RemoteConnection相关联的视频。

也可以看看:

Summary

Nested classes

class RemoteConnection.VideoProvider.Callback

回调类由RemoteConnection.VideoProvider用于从Connection.VideoProvider中继事件。

Public methods

void registerCallback(RemoteConnection.VideoProvider.Callback l)

注册回调以接收视频呼叫的命令和状态更改。

void requestCallDataUsage()

发出检索 RemoteConnection的视频部分 RemoteConnection的数据使用情况(以字节为单位)的 RemoteConnection.VideoProvider

void requestCameraCapabilities()

发出请求以检索 RemoteConnection.VideoProvider当前相机的 RemoteConnection.VideoProvider

void sendSessionModifyRequest(VideoProfile fromProfile, VideoProfile toProfile)

发出修改 RemoteConnection.VideoProvider当前视频会话属性的请求。

void sendSessionModifyResponse(VideoProfile responseProfile)

提供对更改 RemoteConnection.VideoProvider的当前呼叫视频会话属性的请求的 RemoteConnection.VideoProvider

void setCamera(String cameraId)

将相机设置为用于 RemoteConnection.VideoProvider的传出视频。

void setDeviceOrientation(int rotation)

设置 RemoteConnection.VideoProvider的设备方向(以度为 RemoteConnection.VideoProvider

void setDisplaySurface(Surface surface)

设置 RemoteConnection.VideoProvider用于显示从远程设备接收的视频的 RemoteConnection.VideoProvider

void setPauseImage(Uri uri)

当视频信号暂停时,将要显示的图像的 Uri设置为 RemoteConnection.VideoProvider

void setPreviewSurface(Surface surface)

设置用于显示 RemoteConnection.VideoProvider用户摄像头当前正在捕捉的内容的 RemoteConnection.VideoProvider

void setZoom(float value)

RemoteConnection.VideoProvider设置相机缩放比例。

void unregisterCallback(RemoteConnection.VideoProvider.Callback l)

清除通过 registerCallback(RemoteConnection.VideoProvider.Callback)设置的视频通话回 registerCallback(RemoteConnection.VideoProvider.Callback)

Inherited methods

From class java.lang.Object

Public methods

registerCallback

Added in API level 23
void registerCallback (RemoteConnection.VideoProvider.Callback l)

注册回调以接收视频呼叫的命令和状态更改。

Parameters
l RemoteConnection.VideoProvider.Callback: The video call callback.

requestCallDataUsage

Added in API level 23
void requestCallDataUsage ()

发出检索的视频部分的数据使用(以字节为单位)的请求 RemoteConnectionRemoteConnection.VideoProvider

也可以看看:

requestCameraCapabilities

Added in API level 23
void requestCameraCapabilities ()

发出请求以检索 RemoteConnection.VideoProvider当前摄像头的 RemoteConnection.VideoProvider

也可以看看:

sendSessionModifyRequest

Added in API level 23
void sendSessionModifyRequest (VideoProfile fromProfile, 
                VideoProfile toProfile)

发出请求以修改 RemoteConnection.VideoProvider的当前视频会话的 RemoteConnection.VideoProvider

Parameters
fromProfile VideoProfile: The video profile prior to the request.
toProfile VideoProfile: The video profile with the requested changes made.

也可以看看:

sendSessionModifyResponse

Added in API level 23
void sendSessionModifyResponse (VideoProfile responseProfile)

提供对更改 RemoteConnection.VideoProvider的当前呼叫视频会话属性的请求的 RemoteConnection.VideoProvider

Parameters
responseProfile VideoProfile: The response call video properties.

也可以看看:

setCamera

Added in API level 23
void setCamera (String cameraId)

将相机设置为用于 RemoteConnection.VideoProvider的传出视频。

Parameters
cameraId String: The id of the camera (use ids as reported by getCameraIdList()).

也可以看看:

setDeviceOrientation

Added in API level 23
void setDeviceOrientation (int rotation)

设置RemoteConnection.VideoProvider的设备方向(以度为RemoteConnection.VideoProvider 假定设备的标准纵向方向是0度。

Parameters
rotation int: The device orientation, in degrees.

也可以看看:

setDisplaySurface

Added in API level 23
void setDisplaySurface (Surface surface)

设置 RemoteConnection.VideoProvider用于显示从远程设备接收的视频的 RemoteConnection.VideoProvider

Parameters
surface Surface: The Surface.

也可以看看:

setPauseImage

Added in API level 23
void setPauseImage (Uri uri)

当视频信号暂停时,将要显示的图像的 Uri设置为 RemoteConnection.VideoProvider

Parameters
uri Uri

也可以看看:

setPreviewSurface

Added in API level 23
void setPreviewSurface (Surface surface)

设置用于显示 RemoteConnection.VideoProvider当前正在捕获用户相机的预览的 RemoteConnection.VideoProvider

Parameters
surface Surface: The Surface.

也可以看看:

setZoom

Added in API level 23
void setZoom (float value)

设置 RemoteConnection.VideoProvider相机缩放比例。

Parameters
value float: The camera zoom ratio.

也可以看看:

unregisterCallback

Added in API level 23
void unregisterCallback (RemoteConnection.VideoProvider.Callback l)

清除通过 registerCallback(RemoteConnection.VideoProvider.Callback)设置的视频通话回 registerCallback(RemoteConnection.VideoProvider.Callback)

Parameters
l RemoteConnection.VideoProvider.Callback: The video call callback to clear.

Hooray!