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
Name | Type | Description |
---|---|---|
optionalName | String | nullable 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
Name | Type | Description |
---|---|---|
handler | CameraVideoCapturer.CameraSwitchHandler | nullable the default camera handler |
capturer | VideoCapturer | non null the VideoCapturer which needs to be handled |