Bug 235619 - "outbound-rtp" and "inbound-rtp" WebRTC stats appear prematurely
Summary: "outbound-rtp" and "inbound-rtp" WebRTC stats appear prematurely
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-25 16:20 PST by jib
Modified: 2022-02-01 16:21 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jib 2022-01-25 16:20:17 PST
Other browsers tested:
     Chrome: FAIL (https://crbug.com/1291019)
    Firefox: OK
       Edge: FAIL

What steps will reproduce the problem? (1) Open https://jsfiddle.net/jib1/h4swg3xb/8/

What is the expected result? 0 outbound-rtp

What happens instead? 1 outbound-rtp

The spec [1] says: "The lifetime of all RTP monitored objects starts when the RTP stream is first used: When the first RTP packet is sent or received on the SSRC it represents, or when the first RTCP packet is sent or received that refers to the SSRC of the RTP stream."

The fiddle doesn't even establish a peer connection.

[1] https://w3c.github.io/webrtc-stats/#the-rtp-statistics-hierarchy
Comment 1 jib 2022-01-25 16:21:30 PST
For inbound-rtp see https://jsfiddle.net/jib1/b32myw94/9/ (here Firefox fails as well, which is https://bugzil.la/1751532)

For WPT see https://github.com/w3c/webrtc-stats/issues/619.
Comment 2 Radar WebKit Bug Importer 2022-02-01 16:21:27 PST
<rdar://problem/88354363>