From 97281d78ea53eb9ff3095b45d8f2ab8f1cd32fc0 Mon Sep 17 00:00:00 2001 From: chcunningham Date: Tue, 16 Feb 2021 09:14:06 -0800 Subject: [PATCH] Revert "Use DOMHighResTimeStamp for all timestamps/durations" --- index.src.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/index.src.html b/index.src.html index d45d9dc0..d20eb580 100644 --- a/index.src.html +++ b/index.src.html @@ -1482,13 +1482,13 @@ interface EncodedAudioChunk { constructor(EncodedAudioChunkInit init); readonly attribute EncodedAudioChunkType type; - readonly attribute DOMHighResTimeStamp timestamp; + readonly attribute unsigned long long timestamp; // microseconds readonly attribute ArrayBuffer data; }; dictionary EncodedAudioChunkInit { required EncodedAudioChunkType type; - required DOMHighResTimeStamp timestamp; + required unsigned long long timestamp; required BufferSource data; }; @@ -1515,7 +1515,7 @@
Describes whether the chunk is a key frame.
timestamp
-
The presentation timestamp, given in floating-point milliseconds.
+
The presentation timestamp, given in microseconds.
data
A sequence of bytes containing encoded audio data.
@@ -1529,15 +1529,15 @@ interface EncodedVideoChunk { constructor(EncodedVideoChunkInit init); readonly attribute EncodedVideoChunkType type; - readonly attribute DOMHighResTimeStamp timestamp; - readonly attribute DOMHighResTimeStamp? duration; + readonly attribute unsigned long long timestamp; // microseconds + readonly attribute unsigned long long? duration; // microseconds readonly attribute ArrayBuffer data; }; dictionary EncodedVideoChunkInit { required EncodedVideoChunkType type; - required DOMHighResTimeStamp timestamp; - DOMHighResTimeStamp duration; + required unsigned long long timestamp; + unsigned long long duration; required BufferSource data; }; @@ -1566,10 +1566,10 @@
Describes whether the chunk is a key frame or not.
timestamp
-
The presentation timestamp, given in floating-point milliseconds.
+
The presentation timestamp, given in microseconds.
duration
-
The presentation duration, given in floating-point milliseconds.
+
The presentation duration, given in microseconds.
data
A sequence of bytes containing encoded video data.
@@ -1589,13 +1589,13 @@ [Exposed=(Window,Worker)] interface AudioFrame { constructor(AudioFrameInit init); - readonly attribute DOMHighResTimeStamp timestamp; + readonly attribute unsigned long long timestamp; readonly attribute AudioBuffer? buffer; undefined close(); }; dictionary AudioFrameInit { - required DOMHighResTimeStamp timestamp; + required unsigned long long timestamp; required AudioBuffer buffer; }; @@ -1625,7 +1625,7 @@ ### Attributes ###{#audioframe-attributes}
timestamp
-
The presentation timestamp, given in floating-point milliseconds.
+
The presentation timestamp, given in microseconds.
buffer
The buffer containing decoded audio data.
@@ -1667,8 +1667,8 @@ readonly attribute unsigned long cropHeight; readonly attribute unsigned long displayWidth; readonly attribute unsigned long displayHeight; - readonly attribute DOMHighResTimeStamp? duration; - readonly attribute DOMHighResTimeStamp? timestamp; + readonly attribute unsigned long long? duration; + readonly attribute unsigned long long? timestamp; undefined destroy(); VideoFrame clone(); @@ -1687,8 +1687,8 @@ unsigned long cropHeight; unsigned long displayWidth; unsigned long displayHeight; - DOMHighResTimeStamp duration; - DOMHighResTimeStamp timestamp; + unsigned long long duration; + unsigned long long timestamp; }; @@ -1804,12 +1804,12 @@
timestamp
- The presentation timestamp, given in floating-point milliseconds. The timestamp is copied + The presentation timestamp, given in microseconds. The timestamp is copied from the EncodedVideoChunk corresponding to this VideoFrame.
duration
- The presentation duration, given in floating-point milliseconds. The duration is copied + The presentation duration, given in microseconds. The duration is copied from the EncodedVideoChunk corresponding to this VideoFrame.
format