public static class RemoteConnection.VideoProvider
extends Object



RemoteConnection.VideoProvider associated with a RemoteConnection. Used to receive video related events and control the video associated with a RemoteConnection.

Summary

Nested classes

class RemoteConnection.VideoProvider.Callback

Callback class used by the RemoteConnection.VideoProvider to relay events from the Connection.VideoProvider

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 RemoteConnection for the RemoteConnection.VideoProvider.

void requestCameraCapabilities()

Issues a request to retrieve the capabilities of the current camera for the RemoteConnection.VideoProvider.

void sendSessionModifyRequest(VideoProfile fromProfile, VideoProfile toProfile)

Issues a request to modify the properties of the current video session for the RemoteConnection.VideoProvider.

void sendSessionModifyResponse(VideoProfile responseProfile)

Provides a response to a request to change the current call video session properties for the RemoteConnection.VideoProvider.

void setCamera(String cameraId)

Sets the camera to be used for the outgoing video for the RemoteConnection.VideoProvider.

void setDeviceOrientation(int rotation)

Sets the device orientation, in degrees, for the RemoteConnection.VideoProvider.

void setDisplaySurface(Surface surface)

Sets the surface to be used for displaying the video received from the remote device for the RemoteConnection.VideoProvider.

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.

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.

void setZoom(float value)

Sets camera zoom ratio for the RemoteConnection.VideoProvider.

void unregisterCallback(RemoteConnection.VideoProvider.Callback l)

Clears the video call callback set via registerCallback(Callback).

Inherited methods

From class java.lang.Object

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

registerCallback

Added in API level 23

public 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.

requestCallDataUsage

Added in API level 23

public void requestCallDataUsage ()

Issues a request to retrieve the data usage (in bytes) of the video portion of the RemoteConnection for the RemoteConnection.VideoProvider.

requestCameraCapabilities

Added in API level 23

public void requestCameraCapabilities ()

Issues a request to retrieve the capabilities of the current camera for the RemoteConnection.VideoProvider.

sendSessionModifyRequest

Added in API level 23

public 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.

sendSessionModifyResponse

Added in API level 23

public 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.

setCamera

Added in API level 23

public 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 CameraManager.getCameraIdList()).

setDeviceOrientation

Added in API level 23

public 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.

setDisplaySurface

Added in API level 23

public 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.

setPauseImage

Added in API level 23

public 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

setPreviewSurface

Added in API level 23

public 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.

setZoom

Added in API level 23

public void setZoom (float value)

Sets camera zoom ratio for the RemoteConnection.VideoProvider.

Parameters
value float: The camera zoom ratio.

unregisterCallback

Added in API level 23

public void unregisterCallback (RemoteConnection.VideoProvider.Callback l)

Clears the video call callback set via registerCallback(Callback).

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.