Package 

Class ScreenCapturer

  • All Implemented Interfaces:
    com.twilio.video.VideoCapturer , tvi.webrtc.VideoCapturer

    
    public class ScreenCapturer
     implements VideoCapturer
                        

    The ScreenCapturer class is used to provide video frames for a LocalVideoTrack from a device's screen. The frames are provided via the MediaProjection api. This capturer is only compatible with LOLLIPOP or higher.

    This class represents an implementation of a VideoCapturer interface. Although public, these methods are not meant to be invoked directly.

    Note: This capturer can be reused, but cannot be shared across multiple s simultaneously.

    • Method Summary

      Modifier and Type Method Description
      VideoFormat getCaptureFormat()
      boolean isScreencast() Indicates that the screen capturer is a screencast.
      void initialize(@NonNull() SurfaceTextureHelper surfaceTextureHelper, @NonNull() Context context, @NonNull() CapturerObserver capturerObserver)
      void startCapture(int width, int height, int framerate)
      void stopCapture() Stops all frames being captured.
      void dispose() This method provides an optional step to perform a final cleanup.
      • Methods inherited from class com.twilio.video.VideoCapturer

        changeCaptureFormat
      • Methods inherited from class tvi.webrtc.VideoCapturer

        changeCaptureFormat, dispose, initialize, isScreencast, startCapture, stopCapture
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait