getStats icon indicating copy to clipboard operation
getStats copied to clipboard

In Firefox: getStatsResult.video[sendrecvType] is undefined

Open VShtaba opened this issue 5 years ago • 4 comments

getStats v1.2.0 When i use in FireFox 69.0 (64-bit) this example https://rtcmulticonnection.herokuapp.com/demos/getStats.html

I get an error in the console:

getStatsResult.video[sendrecvType] is undefined getStats/getStatsParser.checkVideoTracks@https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:453:13 getStatsLooper/</</<@https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:260:48 getStatsLooper/</<@https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:257:45 getStatsLooper/<@https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:255:21 getStatsWrapper/<@https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:312:17 TypeError: "getStatsResult.video[sendrecvType] is undefined" checkVideoTracks https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:453 getStatsLooper https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:260 getStatsLooper https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:257 getStatsLooper https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:255 getStatsWrapper https://rtcmulticonnection.herokuapp.com/node_modules/getstats/getStats.js:312 getStats.js:262:37

VShtaba avatar Sep 06 '19 08:09 VShtaba

We are also getting the same error and when we debug it we found that if the webcam or mic is disable in firefox in that case we face above issue. In getStats.js file line number 368 variable sendrecvType value should be recv or send but as there is no webcam or mic available sendrecvType value not set and that is why the script breaks.

an-rahulpandey avatar Jan 17 '20 13:01 an-rahulpandey

the same error

ivgotcrazy avatar Sep 01 '20 07:09 ivgotcrazy

I am also getting the same error here

kdvsolis avatar Oct 04 '20 04:10 kdvsolis

The same error

Gochip avatar Apr 29 '21 19:04 Gochip