Api Video Live Stream
fun ApiVideoLiveStream(context: Context, apiVideoView: ApiVideoView, connectionListener: IConnectionListener, initialAudioConfig: AudioConfig? = null, initialVideoConfig: VideoConfig? = null, initialCameraPosition: CameraFacingDirection = CameraFacingDirection.BACK, permissionRequester: (List<String>, onGranted: () -> Unit) -> Unit = { _, onGranted -> onGranted() }): ApiVideoLiveStream
Parameters
context
application context
api Video View
where to display preview. Could be null if you don't have a preview.
connection Listener
connection callbacks
initial Audio Config
initial audio configuration. Could be change later with audioConfig field.
initial Video Config
initial video configuration. Could be change later with videoConfig field.
initial Camera Position
initial camera. Could be change later with cameraPosition field.
permission Requester
permission requester. Called when permissions are required. Always call onGranted when permissions are granted.