Skip to content

Commit e522979

Browse files
Bashamegasaschanaz
andauthored
Migrate timestamp (microsoft#2337)
Co-authored-by: saschanaz <[email protected]>
1 parent 3b5b514 commit e522979

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -314,32 +314,6 @@
314314
}
315315
}
316316
},
317-
// The spec removed `timestamp` but browsers still have it.
318-
// https://github.com/w3c/webrtc-encoded-transform/pull/204
319-
"RTCEncodedAudioFrame": {
320-
"properties": {
321-
"property": {
322-
"timestamp": {
323-
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp",
324-
"name": "timestamp",
325-
"type": "long long",
326-
"readonly": true
327-
}
328-
}
329-
}
330-
},
331-
"RTCEncodedVideoFrame": {
332-
"properties": {
333-
"property": {
334-
"timestamp": {
335-
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp",
336-
"name": "timestamp",
337-
"type": "long long",
338-
"readonly": true
339-
}
340-
}
341-
}
342-
},
343317
"RuntimeError": {
344318
"name": "RuntimeError",
345319
"extends": "Error",

inputfiles/patches/webrtc-encoded-transform.kdl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// https://w3c.github.io/webrtc-encoded-transform/
22

3+
// The spec removed `timestamp` but browsers still have it as of 2025-12
4+
// https://github.com/w3c/webrtc-encoded-transform/pull/204
5+
interface RTCEncodedAudioFrame {
6+
property timestamp type="long long" readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp"
7+
}
8+
9+
interface RTCEncodedVideoFrame {
10+
property timestamp type="long long" readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp"
11+
}
12+
313
removals {
414
dictionary RTCEncodedAudioFrameMetadata {
515
member audioLevel // No implementation as of 2025-05

0 commit comments

Comments
 (0)