open

expect fun open(path: String, format: String? = null, options: Map<String, String> = emptyMap()): MediaSink

Open a sink writing to path.

Parameters

format

container short name (mp4, matroska, mpegts, …). Null infers the format from the path extension.

options

muxer private options applied before the header is written, such as "movflags" to "+faststart" (mp4 web-ready) or "movie_timescale"

actual fun open(path: String, format: String?, options: Map<String, String>): MediaSink

Open a sink writing to path.

Parameters

format

container short name (mp4, matroska, mpegts, …). Null infers the format from the path extension.

options

muxer private options applied before the header is written, such as "movflags" to "+faststart" (mp4 web-ready) or "movie_timescale"

actual fun open(path: String, format: String?, options: Map<String, String>): MediaSink

Open a sink writing to path.

Parameters

format

container short name (mp4, matroska, mpegts, …). Null infers the format from the path extension.

options

muxer private options applied before the header is written, such as "movflags" to "+faststart" (mp4 web-ready) or "movie_timescale"

actual fun open(path: String, format: String?, options: Map<String, String>): MediaSink

Open a sink writing to path.

Parameters

format

container short name (mp4, matroska, mpegts, …). Null infers the format from the path extension.

options

muxer private options applied before the header is written, such as "movflags" to "+faststart" (mp4 web-ready) or "movie_timescale"