Api Video Upstream
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)
Content copied to clipboard
Parameters
context
The application context
api Video View
where to display preview. Could be null if you don't have a preview.
api Key
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.
app Name
The application name. If set, you also must set the appVersion.
app Version
The application version. If srt, you also must set the appName.
part Size
The part size in bytes (minimum is 5242880 bytes, maximum is 134217728 bytes)
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
initial camera. Could be change later with camera field.
initial Session Listener
The listener for one full video
initial Session Upload Part Listener
The listener for a part of a video
streamer Listener
The listener for the streamer