ICompositeEndpointInternal

Properties

Link copied to clipboard

A info to verify supported formats.

Link copied to clipboard
abstract val isOpenFlow: StateFlow<Boolean>

Whether if the endpoint is opened. For example, if the file is opened for FileSink.

Link copied to clipboard
abstract val metrics: Any

Metrics of the endpoint.

Link copied to clipboard
abstract val muxer: IMuxer
Link copied to clipboard
abstract val sink: ISink

Functions

Link copied to clipboard
abstract fun addStream(streamConfig: CodecConfig): Int

Registers a new stream to the IEndpointInternal.

Link copied to clipboard
abstract fun addStreams(streamConfigs: List<CodecConfig>): Map<CodecConfig, Int>

Registers new streams to the IEndpointInternal.

Link copied to clipboard
abstract suspend fun close()

Closes and releases resources

Link copied to clipboard

Gets configuration information

Link copied to clipboard
abstract suspend fun open(descriptor: MediaDescriptor)

Opens the endpoint. The endpoint must check if the MediaDescriptor is supported and if it is not already opened.

Link copied to clipboard
open override fun release()

Releases an IEndpointInternal.

Link copied to clipboard
abstract suspend fun startStream()

Starts frames or data stream generation Throws an exception if not ready for live stream

Link copied to clipboard
abstract suspend fun stopStream()

Stops frames or data stream generation

Link copied to clipboard
abstract suspend fun write(frame: Frame, streamPid: Int)

Writes a Frame to the IEndpointInternal.