AsyncMediaSource
An open container of an AsyncMediaRuntime. It is the suspending form of MediaSource, and its members mean what the members of the same name mean there.
A caller that is cancelled while a read, a seek, a pause or a resume is in FFmpeg stops the source for good: the operation unwinds, and every later read fails with FFmpegError.Interrupted. Close the source and open the media again. A caller cancelled while it still waits for the lane changes nothing.
Properties
What the decode flows do with damaged data. Change it with setCorruptData.
How many damaged packets and frames the decode flows of this source skipped.
The container as the last completed operation left it.
Where a stream's first decoded frame disagreed with what the container declared.
Functions
Closes the container and every byte source it owns. An operation of this source that is in FFmpeg is stopped first, and the close waits until it has unwound. The open packet reader of the source closes with it. Packets and frames stay valid until their own close.
The frames of stream, decoded in order. The collector owns each frame it is given.
The frames of streams, decoded in container order. The collector owns each frame from the moment its emit is called with it, and closes it. The flow holds the source's one read position while it is collected, and gives the lane back before it hands over a frame.
Stops this source for good. An operation of it that waits for bytes fails with FFmpegError.Interrupted, and so does every later one. Safe from any thread, and it does not wait.
Opens a decoder for stream. The parameters mean what they mean in MediaSource.openDecoder.
Opens the one packet reader this source can have at a time, for streams.
Opens a subtitle decoder for stream. See MediaSource.openSubtitleDecoder.
Asks a network source to pause. True when the source paused. See MediaSource.pause.
Sets corruptDataSkipped back to zero.
Lifts a pause. True when one was in effect. See MediaSource.resume.
Moves the read position to the keyframe at or before micros on the content timeline.
Sets what the decode flows started after this call do with damaged data.