Skip to content
Discussion options

You must be logged in to vote

They are all readonly, microsecondTimestamp is a getter! You can modify packets via packet.clone({...}).
https://mediabunny.dev/api/EncodedPacket#clone
And yes, cloning is efficient and reuses the underlying packet data :)

And regarding advice: the pattern you're going for is exactly it! Just make sure that when you're concatenating video, you always lead with a key frame.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JoeOsborn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants