public
static
class
RemoteConnection.VideoProvider
extends Object
java.lang.Object | |
↳ | android.telecom.RemoteConnection.VideoProvider |
RemoteConnection.VideoProvider
associated with a RemoteConnection
. Used to
receive video related events and control the video associated with a
RemoteConnection
.
See also:
Nested classes | |
---|---|
class |
RemoteConnection.VideoProvider.Callback
Callback class used by the |
Public methods | |
---|---|
void
|
registerCallback(RemoteConnection.VideoProvider.Callback l)
Registers a callback to receive commands and state changes for video calls. |
void
|
requestCallDataUsage()
Issues a request to retrieve the data usage (in bytes) of the video portion of the
|
void
|
requestCameraCapabilities()
Issues a request to retrieve the capabilities of the current camera for the
|
void
|
sendSessionModifyRequest(VideoProfile fromProfile, VideoProfile toProfile)
Issues a request to modify the properties of the current video session for the
|
void
|
sendSessionModifyResponse(VideoProfile responseProfile)
Provides a response to a request to change the current call video session
properties for the |
void
|
setCamera(String cameraId)
Sets the camera to be used for the outgoing video for the
|
void
|
setDeviceOrientation(int rotation)
Sets the device orientation, in degrees, for the |
void
|
setDisplaySurface(Surface surface)
Sets the surface to be used for displaying the video received from the remote device for
the |
void
|
setPauseImage(Uri uri)
Sets the |
void
|
setPreviewSurface(Surface surface)
Sets the surface to be used for displaying a preview of what the user's camera is
currently capturing for the |
void
|
setZoom(float value)
Sets camera zoom ratio for the |
void
|
unregisterCallback(RemoteConnection.VideoProvider.Callback l)
Clears the video call callback set via |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
void registerCallback (RemoteConnection.VideoProvider.Callback l)
Registers a callback to receive commands and state changes for video calls.
Parameters | |
---|---|
l |
RemoteConnection.VideoProvider.Callback :
The video call callback.
|
void requestCallDataUsage ()
Issues a request to retrieve the data usage (in bytes) of the video portion of the
RemoteConnection
for the RemoteConnection.VideoProvider
.
See also:
void requestCameraCapabilities ()
Issues a request to retrieve the capabilities of the current camera for the
RemoteConnection.VideoProvider
.
See also:
void sendSessionModifyRequest (VideoProfile fromProfile, VideoProfile toProfile)
Issues a request to modify the properties of the current video session for the
RemoteConnection.VideoProvider
.
Parameters | |
---|---|
fromProfile |
VideoProfile :
The video profile prior to the request. |
toProfile |
VideoProfile :
The video profile with the requested changes made. |
void sendSessionModifyResponse (VideoProfile responseProfile)
Provides a response to a request to change the current call video session
properties for the RemoteConnection.VideoProvider
.
Parameters | |
---|---|
responseProfile |
VideoProfile :
The response call video properties. |
void setCamera (String cameraId)
Sets the camera to be used for the outgoing video for the
RemoteConnection.VideoProvider
.
Parameters | |
---|---|
cameraId |
String :
The id of the camera (use ids as reported by
getCameraIdList() ). |
See also:
void setDeviceOrientation (int rotation)
Sets the device orientation, in degrees, for the RemoteConnection.VideoProvider
.
Assumes that a standard portrait orientation of the device is 0 degrees.
Parameters | |
---|---|
rotation |
int :
The device orientation, in degrees. |
See also:
void setDisplaySurface (Surface surface)
Sets the surface to be used for displaying the video received from the remote device for
the RemoteConnection.VideoProvider
.
Parameters | |
---|---|
surface |
Surface :
The Surface . |
See also:
void setPauseImage (Uri uri)
Sets the Uri
of an image to be displayed to the peer device when the video signal
is paused, for the RemoteConnection.VideoProvider
.
Parameters | |
---|---|
uri |
Uri
|
See also:
void setPreviewSurface (Surface surface)
Sets the surface to be used for displaying a preview of what the user's camera is
currently capturing for the RemoteConnection.VideoProvider
.
Parameters | |
---|---|
surface |
Surface :
The Surface . |
See also:
void setZoom (float value)
Sets camera zoom ratio for the RemoteConnection.VideoProvider
.
Parameters | |
---|---|
value |
float :
The camera zoom ratio. |
See also:
void unregisterCallback (RemoteConnection.VideoProvider.Callback l)
Clears the video call callback set via registerCallback(RemoteConnection.VideoProvider.Callback)
.
Parameters | |
---|---|
l |
RemoteConnection.VideoProvider.Callback :
The video call callback to clear.
|