FileDocCategorySizeDatePackage
VideoCallImpl.javaAPI DocAndroid 5.1 API8434Thu Mar 12 22:22:42 GMT 2015android.telecom

VideoCallImpl

public class VideoCallImpl extends android.telecom.InCallService.VideoCall
Implementation of a Video Call, which allows InCallUi to communicate commands to the underlying {@link Connection.VideoProvider}, and direct callbacks from the {@link Connection.VideoProvider} to the appropriate {@link VideoCall.Listener}. {@hide}

Fields Summary
private static final int
MSG_RECEIVE_SESSION_MODIFY_REQUEST
private static final int
MSG_RECEIVE_SESSION_MODIFY_RESPONSE
private static final int
MSG_HANDLE_CALL_SESSION_EVENT
private static final int
MSG_CHANGE_PEER_DIMENSIONS
private static final int
MSG_CHANGE_CALL_DATA_USAGE
private static final int
MSG_CHANGE_CAMERA_CAPABILITIES
private final com.android.internal.telecom.IVideoProvider
mVideoProvider
private final VideoCallListenerBinder
mBinder
private VideoCall.Listener
mVideoCallListener
private IBinder.DeathRecipient
mDeathRecipient
private final android.os.Handler
mHandler
Default handler used to consolidate binder method calls onto a single thread.
Constructors Summary
VideoCallImpl(com.android.internal.telecom.IVideoProvider videoProvider)
{@hide}


      
        
        mVideoProvider = videoProvider;
        mVideoProvider.asBinder().linkToDeath(mDeathRecipient, 0);

        mBinder = new VideoCallListenerBinder();
        mVideoProvider.setVideoCallback(mBinder);
    
Methods Summary
public voidrequestCallDataUsage()
{@inheritDoc}

        try {
            mVideoProvider.requestCallDataUsage();
        } catch (RemoteException e) {
        }
    
public voidrequestCameraCapabilities()
{@inheritDoc}

        try {
            mVideoProvider.requestCameraCapabilities();
        } catch (RemoteException e) {
        }
    
public voidsendSessionModifyRequest(VideoProfile requestProfile)
{@inheritDoc}

        try {
            mVideoProvider.sendSessionModifyRequest(requestProfile);
        } catch (RemoteException e) {
        }
    
public voidsendSessionModifyResponse(VideoProfile responseProfile)
{@inheritDoc}

        try {
            mVideoProvider.sendSessionModifyResponse(responseProfile);
        } catch (RemoteException e) {
        }
    
public voidsetCamera(java.lang.String cameraId)
{@inheritDoc}

        try {
            mVideoProvider.setCamera(cameraId);
        } catch (RemoteException e) {
        }
    
public voidsetDeviceOrientation(int rotation)
{@inheritDoc}

        try {
            mVideoProvider.setDeviceOrientation(rotation);
        } catch (RemoteException e) {
        }
    
public voidsetDisplaySurface(android.view.Surface surface)
{@inheritDoc}

        try {
            mVideoProvider.setDisplaySurface(surface);
        } catch (RemoteException e) {
        }
    
public voidsetPauseImage(java.lang.String uri)
{@inheritDoc}

        try {
            mVideoProvider.setPauseImage(uri);
        } catch (RemoteException e) {
        }
    
public voidsetPreviewSurface(android.view.Surface surface)
{@inheritDoc}

        try {
            mVideoProvider.setPreviewSurface(surface);
        } catch (RemoteException e) {
        }
    
public voidsetVideoCallListener(VideoCall.Listener videoCallListener)
{@inheritDoc}

        mVideoCallListener = videoCallListener;
    
public voidsetZoom(float value)
{@inheritDoc}

        try {
            mVideoProvider.setZoom(value);
        } catch (RemoteException e) {
        }