DynamicLocalEndpoint

A DynamicEndpoint for local endpoints.

Parameters

context

The application context

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val info: IEndpoint.IEndpointInfo

Only available when the endpoint is opened.

Link copied to clipboard
open override val isOpenFlow: StateFlow<Boolean>

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

Link copied to clipboard
open override val metrics: Any

Metrics of the endpoint.

Functions

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

Registers a new stream to the IEndpointInternal.

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

Registers new streams to the IEndpointInternal.

Link copied to clipboard
open suspend override fun close()

Closes and releases resources

Link copied to clipboard

Gets configuration information

Link copied to clipboard
open suspend override 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
open suspend override fun startStream()

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

Link copied to clipboard
open suspend override fun stopStream()

Stops frames or data stream generation

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

Writes a Frame to the IEndpointInternal.