mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-10 01:03:45 +02:00
Clarify decode order thing for encoded packet sources
This commit is contained in:
+3
-2
@@ -158,7 +158,8 @@ export class EncodedVideoPacketSource extends VideoSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an encoded packet to the output video track.
|
* Adds an encoded packet to the output video track. Packets must be added in *decode order*, while a packet's
|
||||||
|
* timestamp must be its *presentation timestamp*. B-frames are handled automatically.
|
||||||
*
|
*
|
||||||
* @param meta - Additional metadata from the encoder. You should pass this for the first call, including a valid
|
* @param meta - Additional metadata from the encoder. You should pass this for the first call, including a valid
|
||||||
* decoder config.
|
* decoder config.
|
||||||
@@ -788,7 +789,7 @@ export class EncodedAudioPacketSource extends AudioSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds an encoded packet to the output audio track.
|
* Adds an encoded packet to the output audio track. Packets must be added in *decode order*.
|
||||||
*
|
*
|
||||||
* @param meta - Additional metadata from the encoder. You should pass this for the first call, including a valid
|
* @param meta - Additional metadata from the encoder. You should pass this for the first call, including a valid
|
||||||
* decoder config.
|
* decoder config.
|
||||||
|
|||||||
Reference in New Issue
Block a user