<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>235619</bug_id>
          
          <creation_ts>2022-01-25 16:20:17 -0800</creation_ts>
          <short_desc>&quot;outbound-rtp&quot; and &quot;inbound-rtp&quot; WebRTC stats appear prematurely</short_desc>
          <delta_ts>2022-02-01 16:21:27 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jib</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1833919</commentid>
    <comment_count>0</comment_count>
    <who name="">jib</who>
    <bug_when>2022-01-25 16:20:17 -0800</bug_when>
    <thetext>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: &quot;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.&quot;

The fiddle doesn&apos;t even establish a peer connection.

[1] https://w3c.github.io/webrtc-stats/#the-rtp-statistics-hierarchy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833921</commentid>
    <comment_count>1</comment_count>
    <who name="">jib</who>
    <bug_when>2022-01-25 16:21:30 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1836213</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-01 16:21:27 -0800</bug_when>
    <thetext>&lt;rdar://problem/88354363&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>