Bug 312471
| Summary: | RTCInboundRtpStreamStats.trackIdentifier doesn't match MediaStreamTrack.id | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Maria Ivanova <mariaivanova> |
| Component: | WebRTC | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/174938984>
youenn fablet
Pull request: https://github.com/WebKit/WebKit/pull/62961
EWS
Committed 311455@main (5f7fdedf0823): <https://commits.webkit.org/311455@main>
Reviewed commits have been landed. Closing PR #62961 and removing active labels.