Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Use DOMHighResTimeStamp for all timestamps/durations" #141

Merged
merged 1 commit into from
Feb 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand All @@ -1515,7 +1515,7 @@
<dd>Describes whether the chunk is a key frame.</dd>

<dt><dfn attribute for=EncodedAudioChunk>timestamp</dfn></dt>
<dd>The presentation timestamp, given in floating-point milliseconds.</dd>
<dd>The presentation timestamp, given in microseconds.</dd>

<dt><dfn attribute for=EncodedAudioChunk>data</dfn></dt>
<dd>A sequence of bytes containing encoded audio data.</dd>
Expand All @@ -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;
};

Expand Down Expand Up @@ -1566,10 +1566,10 @@
<dd>Describes whether the chunk is a key frame or not.</dd>

<dt><dfn attribute for=EncodedVideoChunk>timestamp</dfn></dt>
<dd>The presentation timestamp, given in floating-point milliseconds.</dd>
<dd>The presentation timestamp, given in microseconds.</dd>

<dt><dfn attribute for=EncodedVideoChunk>duration</dfn></dt>
<dd>The presentation duration, given in floating-point milliseconds.</dd>
<dd>The presentation duration, given in microseconds.</dd>

<dt><dfn attribute for=EncodedVideoChunk>data</dfn></dt>
<dd>A sequence of bytes containing encoded video data.</dd>
Expand All @@ -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;
};
</xmp>
Expand Down Expand Up @@ -1625,7 +1625,7 @@
### Attributes ###{#audioframe-attributes}
<dl>
<dt><dfn attribute for=AudioFrame>timestamp</dfn></dt>
<dd>The presentation timestamp, given in floating-point milliseconds.</dd>
<dd>The presentation timestamp, given in microseconds.</dd>

<dt><dfn attribute for=AudioFrame>buffer</dfn></dt>
<dd>The buffer containing decoded audio data.</dd>
Expand Down Expand Up @@ -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();
Expand All @@ -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;
};
</xmp>
</pre>
Expand Down Expand Up @@ -1804,12 +1804,12 @@
<dl>
<dt><dfn attribute for=VideoFrame>timestamp</dfn></dt>
<dd>
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.
</dd>
<dt><dfn attribute for=VideoFrame>duration</dfn></dt>
<dd>
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.
</dd>
<dt><dfn attribute for=VideoFrame>format</dfn></dt>
Expand Down