Api Video Live Stream
class ApiVideoLiveStream @RequiresPermission(allOf = ["android.permission.RECORD_AUDIO", "android.permission.CAMERA" ] ) constructor(context: Context, apiVideoView: ApiVideoView, connectionListener: IConnectionListener, permissionRequester: (List<String>, onGranted: () -> Unit) -> Unit = { _, onGranted -> onGranted() })
Manages both livestream and camera preview.
Constructors
Link copied to clipboard
constructor(context: Context, apiVideoView: ApiVideoView, connectionListener: IConnectionListener, permissionRequester: (List<String>, onGranted: () -> Unit) -> Unit = { _, onGranted -> onGranted() })
Properties
Link copied to clipboard
Sets/gets audio configuration once you have created the a ApiVideoLiveStream instance.
Link copied to clipboard
Get/set current camera facing direction.
Link copied to clipboard
Check the streaming state.
Link copied to clipboard
Get/set video bitrate during a streaming in bps. Value will be reset to provided VideoConfig.startBitrate for a new stream.
Link copied to clipboard
Sets/gets video configuration once you have created the a ApiVideoLiveStream instance.
Functions
Link copied to clipboard
Starts camera preview of cameraPosition.
Link copied to clipboard
Start a new RTMP stream.
Link copied to clipboard
Stops camera preview.
Link copied to clipboard
Stops running stream.