Expand packet.clone(), make conversion start timestamp default to the input's start timestamp

This commit is contained in:
Vanilagy
2026-01-19 14:04:20 +01:00
parent d23b0369f3
commit dbaaea255c
6 changed files with 72 additions and 42 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ Negative sequence numbers mean the packet's ordering is undefined. When creating
### Cloning packets
Use the `clone` method to create a new packet from an existing packet. While doing so, you can change its timestamp and duration.
Use the `clone` method to create a new packet from an existing packet. While doing so, you can partially change its data.
```ts
// Creates a clone identical to the original:
packet.clone();