From 84b3d8eaad40daf8c3a18f9f90bee4d5ce7462a4 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sun, 28 Dec 2025 07:24:36 +0200 Subject: [PATCH 1/5] Migrate timestamp --- inputfiles/addedTypes.jsonc | 26 ------------------- .../patches/webrtc-encoded-transform.kdl | 10 +++++++ 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index e377c9546..5186b40c7 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -314,32 +314,6 @@ } } }, - // The spec removed `timestamp` but browsers still have it. - // https://github.com/w3c/webrtc-encoded-transform/pull/204 - "RTCEncodedAudioFrame": { - "properties": { - "property": { - "timestamp": { - "mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp", - "name": "timestamp", - "type": "long long", - "readonly": true - } - } - } - }, - "RTCEncodedVideoFrame": { - "properties": { - "property": { - "timestamp": { - "mdnUrl": "https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp", - "name": "timestamp", - "type": "long long", - "readonly": true - } - } - } - }, "RuntimeError": { "name": "RuntimeError", "extends": "Error", diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index 16d090dc7..a9391d3a5 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -11,3 +11,13 @@ removals { member senderCaptureTimeOffset // Blink only as of 2025-05 } } + +// The spec removed `timestamp` but browsers still have it. +// https://github.com/w3c/webrtc-encoded-transform/pull/204 +interface RTCEncodedAudioFrame { + property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" +} + +interface RTCEncodedVideoFrame { + property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" +} \ No newline at end of file From c75c445a5e14d7b5a98537d7c2343b7657bb1347 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sun, 28 Dec 2025 07:25:17 +0200 Subject: [PATCH 2/5] - --- inputfiles/patches/webrtc-encoded-transform.kdl | 1 + 1 file changed, 1 insertion(+) diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index a9391d3a5..16313aafc 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -14,6 +14,7 @@ removals { // The spec removed `timestamp` but browsers still have it. // https://github.com/w3c/webrtc-encoded-transform/pull/204 +// Still Valid in 2025-12 interface RTCEncodedAudioFrame { property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" } From 1fc63c64c158516586f45544d452a7186c64a758 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 28 Dec 2025 12:35:35 +0100 Subject: [PATCH 3/5] Update timestamp comment for RTCEncodedAudioFrame --- inputfiles/patches/webrtc-encoded-transform.kdl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index 16313aafc..67409d535 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -12,13 +12,12 @@ removals { } } -// The spec removed `timestamp` but browsers still have it. +// The spec removed `timestamp` but browsers still have it as of 2025-12 // https://github.com/w3c/webrtc-encoded-transform/pull/204 -// Still Valid in 2025-12 interface RTCEncodedAudioFrame { property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" } interface RTCEncodedVideoFrame { property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" -} \ No newline at end of file +} From 0afc9c0881387ba1b11e0f37818dee391760b8f3 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 28 Dec 2025 12:36:42 +0100 Subject: [PATCH 4/5] maybe keep removals bottom --- .../patches/webrtc-encoded-transform.kdl | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index 67409d535..04cdd32af 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -1,5 +1,15 @@ // https://w3c.github.io/webrtc-encoded-transform/ +// The spec removed `timestamp` but browsers still have it as of 2025-12 +// https://github.com/w3c/webrtc-encoded-transform/pull/204 +interface RTCEncodedAudioFrame { + property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" +} + +interface RTCEncodedVideoFrame { + property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" +} + removals { dictionary RTCEncodedAudioFrameMetadata { member audioLevel // No implementation as of 2025-05 @@ -11,13 +21,3 @@ removals { member senderCaptureTimeOffset // Blink only as of 2025-05 } } - -// The spec removed `timestamp` but browsers still have it as of 2025-12 -// https://github.com/w3c/webrtc-encoded-transform/pull/204 -interface RTCEncodedAudioFrame { - property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" -} - -interface RTCEncodedVideoFrame { - property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" -} From 068089bf8cd03b3b5d1087acc8c7d73418bbc87d Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 28 Dec 2025 12:38:15 +0100 Subject: [PATCH 5/5] Change timestamp type to 'long long' in KDL --- inputfiles/patches/webrtc-encoded-transform.kdl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputfiles/patches/webrtc-encoded-transform.kdl b/inputfiles/patches/webrtc-encoded-transform.kdl index 04cdd32af..6c3bc9746 100644 --- a/inputfiles/patches/webrtc-encoded-transform.kdl +++ b/inputfiles/patches/webrtc-encoded-transform.kdl @@ -3,11 +3,11 @@ // The spec removed `timestamp` but browsers still have it as of 2025-12 // https://github.com/w3c/webrtc-encoded-transform/pull/204 interface RTCEncodedAudioFrame { - property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" + property timestamp type="long long" readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp" } interface RTCEncodedVideoFrame { - property timestamp type=long readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" + property timestamp type="long long" readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp" } removals {