Package-level declarations

Types

Link copied to clipboard
open class CombineEndpoint(val endpointInternals: List<IEndpointInternal>, coroutineDispatcher: CoroutineDispatcher) : IEndpointInternal

Combines multiple endpoints into one. This endpoint will write frames to all endpoints if they are opened.

Link copied to clipboard
Link copied to clipboard
open class DualEndpoint(mainEndpoint: IEndpointInternal, secondEndpoint: IEndpointInternal, coroutineDispatcher: CoroutineDispatcher) : CombineEndpoint

An implementation of CombineEndpoint that combines two endpoints. The mainEndpoint is the only one closed and opened by this endpoint. The secondEndpoint is opened and closed by the user.

Link copied to clipboard

A factory to build a DualEndpoint.

Link copied to clipboard
open class DynamicEndpoint(context: Context, defaultDispatcher: CoroutineDispatcher, ioDispatcher: CoroutineDispatcher) : IEndpointInternal

An implementation of IEndpointInternal where the endpoint is created based on the MediaDescriptor.

Link copied to clipboard
Link copied to clipboard
class DynamicLocalEndpoint(context: Context, defaultDispatcher: CoroutineDispatcher, ioDispatcher: CoroutineDispatcher) : DynamicEndpoint

A DynamicEndpoint for local endpoints.

Link copied to clipboard
interface IEndpoint
Link copied to clipboard
class MediaMuxerEndpoint(context: Context, ioDispatcher: CoroutineDispatcher) : IEndpointInternal

An IEndpointInternal implementation of the MediaMuxer.

Link copied to clipboard

Media scheme. Use to determine the type of sink.

Properties

Link copied to clipboard

Whether the sink is local (ie. a local file) or not.

Functions

Link copied to clipboard
fun CombineEndpoint(vararg endpoints: IEndpointInternal, coroutineDispatcher: CoroutineDispatcher): CombineEndpoint

Combines multiple endpoints into one.

Link copied to clipboard
fun CombineEndpointFactory(vararg endpointFactory: IEndpointInternal.Factory): <Error class: unknown class>

A factory to build a CombineEndpoint from a varargs of IEndpointInternal.Factory.

Link copied to clipboard
suspend fun DualEndpoint.openSecond(uri: Uri)
suspend fun DualEndpoint.openSecond(uriString: String)

Opens the second endpoint.

Link copied to clipboard
suspend fun DualEndpoint.startStreamSecond(uriString: String)

Starts audio/video stream for the second endpoint.