AsyncPacket

One packet of an AsyncMediaRuntime. It is the suspending form of Packet. Every property was read when the packet was made, so a getter never waits and never enters FFmpeg.

Properties

Link copied to clipboard
Link copied to clipboard
val dts: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pts: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun close()

Releases the resource. A second call waits for the first and reports the same result. A close finishes even when its caller is cancelled.

Link copied to clipboard
suspend fun copy(): AsyncPacket

A second reference to the same data, which the caller owns and closes.

Link copied to clipboard
suspend fun copyBytes(): ByteArray

The packet's compressed bytes, copied out.