CameraRtmpLiveStreamer

class CameraRtmpLiveStreamer(context: Context, enableAudio: Boolean = true, initialOnErrorListener: OnErrorListener? = null, initialOnConnectionListener: OnConnectionListener? = null) : BaseCameraLiveStreamer

A BaseCameraLiveStreamer that sends microphone and camera frames to a remote RTMP device.

Parameters

context

application context

enableAudio

Boolean.true to capture audio. False to disable audio capture.

initialOnErrorListener

initialize OnErrorListener

initialOnConnectionListener

Constructors

Link copied to clipboard
constructor(context: Context, enableAudio: Boolean = true, initialOnErrorListener: OnErrorListener? = null, initialOnConnectionListener: OnConnectionListener? = null)

Properties

Link copied to clipboard
open override var camera: String
Link copied to clipboard
Link copied to clipboard
open override val isConnected: Boolean
Link copied to clipboard
Link copied to clipboard
open override var onErrorListener: OnErrorListener?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun configure(audioConfig: AudioConfig)
open override fun configure(videoConfig: VideoConfig)
open override fun configure(audioConfig: AudioConfig, videoConfig: VideoConfig)
Link copied to clipboard
open suspend override fun connect(url: String)
Link copied to clipboard
open override fun disconnect()
Link copied to clipboard
open override fun release()
Link copied to clipboard
Link copied to clipboard
open override fun startPreview(previewSurface: Surface, cameraId: String)
open fun startPreview(surfaceHolder: SurfaceHolder, cameraId: String)
open fun startPreview(surfaceView: SurfaceView, cameraId: String)
open fun startPreview(textureView: TextureView, cameraId: String)
Link copied to clipboard
open suspend override fun startStream()
open suspend override fun startStream(url: String)
Link copied to clipboard
open override fun stopPreview()
Link copied to clipboard
open suspend override fun stopStream()