java.lang.Object | |
↳ | android.telecom.InCallService.VideoCall |
Used to issue commands to the Connection.VideoProvider
associated with a
Call
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InCallService.VideoCall.Callback |
The InCallService extends this class to provide a means of receiving callbacks
from the Connection.VideoProvider .
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers a callback to receive commands and state changes for video calls.
| |||||||||||
Registers a callback to receive commands and state changes for video calls.
| |||||||||||
Issues a request to the
Connection.VideoProvider to retrieve the cumulative data
usage for the video component of the current call (in bytes).
| |||||||||||
Issues a request to the
Connection.VideoProvider to retrieve the capabilities
of the current camera.
| |||||||||||
Issues a request to modify the properties of the current video session.
| |||||||||||
Provides a response to a request to change the current call video session
properties.
| |||||||||||
Sets the camera to be used for the outgoing video.
| |||||||||||
Sets the device orientation, in degrees.
| |||||||||||
Sets the surface to be used for displaying the video received from the remote device.
| |||||||||||
Provides the
Connection.VideoProvider with the Uri of an image to be
displayed to the peer device when the video signal is paused.
| |||||||||||
Sets the surface to be used for displaying a preview of what the user's camera is
currently capturing.
| |||||||||||
Sets camera zoom ratio.
| |||||||||||
Clears the video call callback set via
registerCallback(InCallService.VideoCall.Callback) .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Registers a callback to receive commands and state changes for video calls.
callback | The video call callback. |
---|---|
handler | A handler which commands and status changes will be delivered to. |
Registers a callback to receive commands and state changes for video calls.
callback | The video call callback. |
---|
Issues a request to the Connection.VideoProvider
to retrieve the cumulative data
usage for the video component of the current call (in bytes). Data usage is reported
to the caller via onCallDataUsageChanged(long)
.
Handled by onRequestConnectionDataUsage()
.
Issues a request to the Connection.VideoProvider
to retrieve the capabilities
of the current camera. The current camera is selected using
setCamera(String)
.
Camera capabilities are reported to the caller via
onCameraCapabilitiesChanged(VideoProfile.CameraCapabilities)
.
Handled by onRequestCameraCapabilities()
.
Issues a request to modify the properties of the current video session.
Example scenarios include: requesting an audio-only call to be upgraded to a
bi-directional video call, turning on or off the user's camera, sending a pause signal
when the InCallService
is no longer the foreground application.
Handled by
onSendSessionModifyRequest(VideoProfile, VideoProfile)
.
requestProfile | The requested call video properties. |
---|
Provides a response to a request to change the current call video session
properties. This should be called in response to a request the InCallService
has
received via onSessionModifyRequestReceived(VideoProfile)
.
Handled by
onSendSessionModifyResponse(VideoProfile)
.
responseProfile | The response call video properties. |
---|
Sets the camera to be used for the outgoing video.
Handled by onSetCamera(String)
.
cameraId | The id of the camera (use ids as reported by
getCameraIdList() ).
|
---|
Sets the device orientation, in degrees. Assumes that a standard portrait orientation of the device is 0 degrees.
Handled by onSetDeviceOrientation(int)
.
rotation | The device orientation, in degrees. |
---|
Sets the surface to be used for displaying the video received from the remote device.
Handled by onSetDisplaySurface(Surface)
.
surface | The Surface .
|
---|
Provides the Connection.VideoProvider
with the Uri
of an image to be
displayed to the peer device when the video signal is paused.
Handled by onSetPauseImage(Uri)
.
uri | URI of image to display. |
---|
Sets the surface to be used for displaying a preview of what the user's camera is currently capturing. When video transmission is enabled, this is the video signal which is sent to the remote device.
Handled by onSetPreviewSurface(Surface)
.
surface | The Surface .
|
---|
Sets camera zoom ratio.
Handled by onSetZoom(float)
.
value | The camera zoom ratio. |
---|
Clears the video call callback set via registerCallback(InCallService.VideoCall.Callback)
.
callback | The video call callback to clear. |
---|