Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Firefox: getStatsResult.video[sendrecvType] is undefined #26

Open
VShtaba opened this issue Sep 6, 2019 · 4 comments
Open

In Firefox: getStatsResult.video[sendrecvType] is undefined #26

VShtaba opened this issue Sep 6, 2019 · 4 comments

Comments

@VShtaba
Copy link

VShtaba commented Sep 6, 2019

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

@an-rahulpandey
Copy link

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.

@ivgotcrazy
Copy link

the same error

@kdvsolis
Copy link

kdvsolis commented Oct 4, 2020

I am also getting the same error here

@Gochip
Copy link

Gochip commented Apr 29, 2021

The same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants