Bug 312471

Summary: RTCInboundRtpStreamStats.trackIdentifier doesn't match MediaStreamTrack.id
Product: WebKit Reporter: Maria Ivanova <mariaivanova>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, tfaltejsek, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: Unspecified   

Maria Ivanova
Reported 2026-04-16 07:03:14 PDT
Per the W3C WebRTC Stats spec (https://www.w3.org/TR/webrtc-stats/#dom-rtcinboundrtpstreamstats-trackidentifier): ▎ trackIdentifier is the id attribute of the track object associated with this RTP stream. In Safari stable (Version 26.4), RTCInboundRtpStreamStats.trackIdentifier returned from RTCPeerConnection.getStats() correctly matches MediaStreamTrack.id from RTCRtpReceiver.track. In Safari Technology Preview (Release 241 (WebKit 21625.1.12)), these values diverge - trackIdentifier returns a different UUID than the one assigned to the corresponding MediaStreamTrack. Steps to reproduce: 1. Open https://jsfiddle.net/masha241/4kpx3zrh/1/ 2. Click Start to establish a loopback peer connection 3. Click Check Stats to compare receiver.track.id with the trackIdentifier field from the inbound-rtp stats report Expected: Both values are the same string Actual (Safari Technology Preview): trackIdentifier is a different UUID than MediaStreamTrack.id Impact: Any application that correlates per-track WebRTC stats with MediaStreamTrack objects using this field (as the spec intends) will fail to match them
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-16 11:35:14 PDT
youenn fablet
Comment 2 2026-04-17 01:55:25 PDT
EWS
Comment 3 2026-04-17 08:39:47 PDT
Committed 311455@main (5f7fdedf0823): <https://commits.webkit.org/311455@main> Reviewed commits have been landed. Closing PR #62961 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.