mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-30 04:13:51 +02:00
Add VideoSample and AudioSample abstractions
This commit is contained in:
+2
-2
@@ -40,11 +40,11 @@ export class EncodedPacket {
|
||||
}
|
||||
|
||||
get microsecondTimestamp() {
|
||||
return Math.floor(SECOND_TO_MICROSECOND_FACTOR * this.timestamp);
|
||||
return Math.trunc(SECOND_TO_MICROSECOND_FACTOR * this.timestamp);
|
||||
}
|
||||
|
||||
get microsecondDuration() {
|
||||
return Math.floor(SECOND_TO_MICROSECOND_FACTOR * this.duration);
|
||||
return Math.trunc(SECOND_TO_MICROSECOND_FACTOR * this.duration);
|
||||
}
|
||||
|
||||
toEncodedVideoChunk() {
|
||||
|
||||
Reference in New Issue
Block a user