ApiVideoUpstream

@RequiresPermission(allOf = ["android.permission.RECORD_AUDIO", "android.permission.CAMERA"])
fun ApiVideoUpstream(    context: Context,     apiVideoView: ApiVideoView,     apiKey: String? = null,     environment: Environment = Environment.PRODUCTION,     timeout: Int? = null,     appName: String? = null,     appVersion: String? = null,     partSize: Long = ApiClient.DEFAULT_CHUNK_SIZE,     initialAudioConfig: AudioConfig?,     initialVideoConfig: VideoConfig?,     initialCamera: CameraFacingDirection = CameraFacingDirection.BACK,     initialSessionListener: SessionListener? = null,     initialSessionUploadPartListener: SessionUploadPartListener? = null,     streamerListener: StreamerListener? = null)

Parameters

context

The application context

apiVideoView

where to display preview. Could be null if you don't have a preview.

apiKey

The API key. If null, only upload with upload token will be possible.

environment

The environment to use. Default is Environment.PRODUCTION.

timeout

The timeout in seconds.

appName

The application name. If set, you also must set the appVersion.

appVersion

The application version. If srt, you also must set the appName.

partSize

The part size in bytes (minimum is 5242880 bytes, maximum is 134217728 bytes)

initialAudioConfig

initial audio configuration. Could be change later with audioConfig field.

initialVideoConfig

initial video configuration. Could be change later with videoConfig field.

initialCamera

initial camera. Could be change later with camera field.

initialSessionListener

The listener for one full video

initialSessionUploadPartListener

The listener for a part of a video

streamerListener

The listener for the streamer