2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

VideoCapturerProvider

The VideoCapturerProvider model allows sharing the screen of an external device during a conference. This model provides VideoCapturer.

Available in the package com.voxeet.android.media.utils.VideoCapturerProvider.

Methods

createVideoCapturer

createVideoCapturer(@Nullable optionalName: String): VideoCapturer

Creates VideoCapturer.

Parameters

NameTypeDescription
optionalNameStringnullable the optional name of the VideoCapturer

Returns: @Nullable VideoCapturer - the VideoCapturer or a null value that cancels the VideoCapturer creation.

getWidth

getWidth(): int

Gets the mandatory width of the captured frames.

Returns: int - the width in pixels.

getHeight

getHeight(): int

Gets the mandatory height of the captured frames.

Returns: int - the height in pixels.

getFrameRate

getFrameRate(): int

Gets the mandatory rate of the captured frames.

Returns: int - the frame rate.

switchCamera

switchCamera(@Nullable handler: CameraVideoCapturer.CameraSwitchHandler, @NonNull capturer: VideoCapturer): void

Switches cameras. Call it, when a switch is asked by the engine. This method is not compatible with devices.

Parameters

NameTypeDescription
handlerCameraVideoCapturer.CameraSwitchHandlernullable the default camera handler
capturerVideoCapturernon null the VideoCapturer which needs to be handled