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

Make timestamps/durations int64 microseconds #248

Merged
merged 1 commit into from
May 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
30 changes: 15 additions & 15 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1783,15 +1783,15 @@
interface EncodedAudioChunk {
constructor(EncodedAudioChunkInit init);
readonly attribute EncodedAudioChunkType type;
readonly attribute unsigned long long timestamp; // microseconds
readonly attribute long long timestamp; // microseconds
readonly attribute unsigned long byteLength;

undefined copyTo(ArrayBufferView dst);
};

dictionary EncodedAudioChunkInit {
required EncodedAudioChunkType type;
required unsigned long long timestamp;
required long long timestamp; // microseconds
required BufferSource data;
};

Expand Down Expand Up @@ -1841,17 +1841,17 @@
interface EncodedVideoChunk {
constructor(EncodedVideoChunkInit init);
readonly attribute EncodedVideoChunkType type;
readonly attribute unsigned long long timestamp; // microseconds
readonly attribute unsigned long long? duration; // microseconds
readonly attribute long long timestamp; // microseconds
readonly attribute long long? duration; // microseconds
readonly attribute unsigned long byteLength;

undefined copyTo(ArrayBufferView dst);
};

dictionary EncodedVideoChunkInit {
required EncodedVideoChunkType type;
required unsigned long long timestamp;
unsigned long long duration;
required long long timestamp; // microseconds
long long duration; // microseconds
required BufferSource data;
};

Expand Down Expand Up @@ -1958,8 +1958,8 @@
readonly attribute unsigned long numberOfFrames;
readonly attribute unsigned long numberOfChannels;
readonly attribute unsigned long allocationSize;
readonly attribute unsigned long long duration;
readonly attribute unsigned long long timestamp;
readonly attribute long long duration; // microseconds
readonly attribute long long timestamp; // microseconds

undefined copyTo([AllowShared] BufferSource destination, unsigned long planeNumber);
AudioData clone();
Expand All @@ -1971,7 +1971,7 @@
required float sampleRate;
required unsigned long numberOfFrames;
required unsigned long numberOfChannels;
required unsigned long long timestamp;
required long long timestamp; // microseconds
required BufferSource data;
};
</xmp>
Expand Down Expand Up @@ -2192,16 +2192,16 @@
readonly attribute unsigned long cropHeight;
readonly attribute unsigned long displayWidth;
readonly attribute unsigned long displayHeight;
readonly attribute unsigned long long? duration;
readonly attribute unsigned long long? timestamp;
readonly attribute long long? duration; // microseconds
readonly attribute long long? timestamp; // microseconds

VideoFrame clone();
undefined close();
};

dictionary VideoFrameInit {
unsigned long long duration;
unsigned long long timestamp;
long long duration; // microseconds
long long timestamp; // microseconds
};

dictionary VideoFramePlaneInit {
Expand All @@ -2214,8 +2214,8 @@
unsigned long cropHeight;
unsigned long displayWidth;
unsigned long displayHeight;
unsigned long long duration;
unsigned long long timestamp;
long long duration; // microseconds
long long timestamp; // microseconds
};
</xmp>

Expand Down