getStats() from Firefox not returning track stats as it does in chrome

113 views
Skip to first unread message

pj...@cornell.edu

unread,
Feb 21, 2018, 2:58:42 AM2/21/18
to discuss-webrtc
Hi folks,

I call the getStats() API when running in firefox 58 as pasted at the bottom.

I seem to get only the following stat objects:
- inbound-rtp
- outbound-rtp
- local-candidate
- remote-candidate
- candidate-pair

I'm looking for "track" related metrics but that doesn't seem to be available to me. It works on chrome but not here. 

Any ideas as to why this is happening?

Thanks for your help! 

Regards,
Pracheth


this.peer.getStats()

      .then((report) => {

        report.forEach(

          (item) => {

          console.log(item);

        });

      })

      .catch((err) => {

        console.log(err);

      });

ngru...@mozilla.com

unread,
Feb 22, 2018, 3:24:24 AM2/22/18
to discuss-webrtc
Pracheth,

Firefox does not yet return track stats. There is an open bug in Firefox's bug tracker to implement them https://bugzilla.mozilla.org/show_bug.cgi?id=1225720
Reply all
Reply to author
Forward
0 new messages