amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture

Package com.amazonaws.services.chime.sdk.meetings.audiovideo.video.capture

Types

CameraCaptureSource

CameraCaptureSource is an interface for camera capture sources with additional features not covered by VideoCaptureSource.

interface CameraCaptureSource : VideoCaptureSource

CaptureSourceError

CaptureSourceError describes an error resulting from a capture source failure These can be used to trigger UI, or attempt to restart the capture source.

enum class CaptureSourceError

CaptureSourceObserver

CaptureSourceObserver observes events resulting from different types of capture devices. Builders may desire this input to decide when to show certain UI elements, or to notify users of failure.

interface CaptureSourceObserver

DefaultCameraCaptureSource

DefaultCameraCaptureSource will configure a reasonably standard capture stream which will use the Surface provided by the capture source provided by a SurfaceTextureCaptureSourceFactory

class DefaultCameraCaptureSource : CameraCaptureSource, VideoSink

DefaultScreenCaptureSource

DefaultScreenCaptureSource uses MediaProjection to create a VirtualDisplay to capture the device screen. It will render the captured frames to a Surface provided by a SurfaceTextureCaptureSourceFactory.

class DefaultScreenCaptureSource : VideoCaptureSource, VideoSink

DefaultSurfaceTextureCaptureSource

DefaultSurfaceTextureCaptureSource will provide a Surface which it will listen to and convert to VideoFrameTextureBuffer objects

class DefaultSurfaceTextureCaptureSource : SurfaceTextureCaptureSource

DefaultSurfaceTextureCaptureSourceFactory

DefaultSurfaceTextureCaptureSourceFactory creates DefaultSurfaceTextureCaptureSource objects

class DefaultSurfaceTextureCaptureSourceFactory : SurfaceTextureCaptureSourceFactory

ScreenCaptureResolutionCalculator

ScreenCaptureResolutionCalculator calculates scaled resolution based on input resolution and target resolution constraint

class ScreenCaptureResolutionCalculator

SurfaceTextureCaptureSource

SurfaceTextureCaptureSource provides a Surface which can be passed to system sources like the camera. Upon start call, the source will listen to the surface and emit any new images as VideoFrame objects to any downstream VideoSink interfaces. This class is mostly intended for composition within VideoSource implementations which will pass the created Surface to a system source, then call addVideoSink to receive the frames before transforming and passing downstream.

interface SurfaceTextureCaptureSource : VideoCaptureSource

SurfaceTextureCaptureSourceFactory

SurfaceTextureCaptureSourceFactory is an factory interface for creating new SurfaceTextureCaptureSource objects, possible using shared state. This provides flexibility over use of SurfaceTextureCaptureSource objects since they may not allow reuse, or may have a delay before possible reuse.

interface SurfaceTextureCaptureSourceFactory

VideoCaptureFormat

VideoCaptureFormat describes a given capture format that can be set to a VideoCaptureSource. Note that VideoCaptureSource implementations may ignore or adjust unsupported values.

data class VideoCaptureFormat

VideoCaptureSource

VideoCaptureSource is an interface for various video capture sources (i.e. screen, camera, file) which can emit VideoFrame objects All the APIs here can be called regardless of whether the AudioVideoFacade is started or not.

interface VideoCaptureSource : VideoSource