Companion
Functions
Open a local file or URL.
Open with pre-open options: pairs applied between allocation and open, the only moment probesize, fflags and format forcing can act. Keys FFmpeg does not consume are reported through unusedOpenOptions, never silently dropped.
Open over caller-supplied bytes: FFmpeg demuxes whatever io reads, with no path involved. The returned source OWNS io and closes it when it closes. Pre-open options and interrupt behave exactly like the path overload's. Blocking, like every open here: call it off the UI thread, and expect io's own read latency to shape the open time.
Open a local file or URL.
Open with pre-open options: pairs applied between allocation and open, the only moment probesize, fflags and format forcing can act. Keys FFmpeg does not consume are reported through unusedOpenOptions, never silently dropped.
Open over caller-supplied bytes: FFmpeg demuxes whatever io reads, with no path involved. The returned source OWNS io and closes it when it closes. Pre-open options and interrupt behave exactly like the path overload's. Blocking, like every open here: call it off the UI thread, and expect io's own read latency to shape the open time.
Open a local file or URL.
Open with pre-open options: pairs applied between allocation and open, the only moment probesize, fflags and format forcing can act. Keys FFmpeg does not consume are reported through unusedOpenOptions, never silently dropped.
Open over caller-supplied bytes: FFmpeg demuxes whatever io reads, with no path involved. The returned source OWNS io and closes it when it closes. Pre-open options and interrupt behave exactly like the path overload's. Blocking, like every open here: call it off the UI thread, and expect io's own read latency to shape the open time.
Open a local file or URL.
Open with pre-open options: pairs applied between allocation and open, the only moment probesize, fflags and format forcing can act. Keys FFmpeg does not consume are reported through unusedOpenOptions, never silently dropped.
Open over caller-supplied bytes: FFmpeg demuxes whatever io reads, with no path involved. The returned source OWNS io and closes it when it closes. Pre-open options and interrupt behave exactly like the path overload's. Blocking, like every open here: call it off the UI thread, and expect io's own read latency to shape the open time.
Open a local file or URL.
Open with pre-open options: pairs applied between allocation and open, the only moment probesize, fflags and format forcing can act. Keys FFmpeg does not consume are reported through unusedOpenOptions, never silently dropped.
Open over caller-supplied bytes: FFmpeg demuxes whatever io reads, with no path involved. The returned source OWNS io and closes it when it closes. Pre-open options and interrupt behave exactly like the path overload's. Blocking, like every open here: call it off the UI thread, and expect io's own read latency to shape the open time.
MediaSource.open over caller-supplied bytes, with typed DemuxOptions.
MediaSource.open with typed DemuxOptions instead of raw option pairs. interrupt behaves as it does on the raw overload; see OpenInterrupt.
The same over caller-supplied bytes. The source owns io and closes it, so io is spent when this returns, exactly as it would be after an MediaSource.Companion.open and a close.
Opens path, reads what it says about itself, and closes it again.