Package tvi.webrtc

Class Camera1Session

    • Method Detail

      • initializeCallbackBuffer

        public static void initializeCallbackBuffer​(CameraEnumerationAndroid.CaptureFormat captureFormat,
                                                    android.hardware.Camera camera)
        Initialize the camera callback buffer. This method can be used when starting the session or to re-initialize the session after applying an update to the camera object. TODO(titovartem) make correct fix during webrtc:9175
      • stop

        public void stop()
        Description copied from interface: CameraSession
        Stops the capture. Waits until no more calls to capture observer will be made. If waitCameraStop is true, also waits for the camera to stop.
        Specified by:
        stop in interface CameraSession
      • getCamera

        public android.hardware.Camera getCamera()
        Get the camera object.
      • listenForTextureFrames

        public void listenForTextureFrames()
        Start listening for frames captured to a surface texture. This method should only be used if |captureToTexture| is true.
      • listenForBytebufferFrames

        public void listenForBytebufferFrames()
        Start listening for frames captured to a buffer. This method should only be used if |captureToTexture| is false.