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

"Uncaught ReferenceError: RTCPeerConnection is not defined" #360

Open
yiannis-st opened this issue Apr 21, 2023 · 4 comments
Open

"Uncaught ReferenceError: RTCPeerConnection is not defined" #360

yiannis-st opened this issue Apr 21, 2023 · 4 comments

Comments

@yiannis-st
Copy link

Agora web : in my angular 14 application, bootstrap of the app will stop because of an error, in some devices. Mostly xiaomi devices and miBrowser but not only will end up in a blank screen. Angular app will not be able to load, because the error will stop execution;

Related errors:
"Uncaught ReferenceError: RTCPeerConnection is not defined"
"ReferenceError: Can't find variable: RTCPeerConnection"

MicrosoftTeams-image (1)
MicrosoftTeams-image (2)

@plutoless
Copy link
Contributor

@yiannis-st to run RTC feature, the browser needs to support webrtc. if RTCPeerConneciton is not defined, it usually means your browser does not support webrtc.
you may use checkSystemRequirements api to test the compatibility of current browser.

@yiannis-st
Copy link
Author

yiannis-st commented Apr 24, 2023

The error is being thrown way before checkSystemRequirements are available. This is a screenshot from a normal latest flow. You can see the checkSystemRequirements api is ready way after RTCPeerConnection check.
Screenshot 2023-04-24 at 08 19 06

@yiannis-st
Copy link
Author

@yiannis-st to run RTC feature, the browser needs to support webrtc. if RTCPeerConneciton is not defined, it usually means your browser does not support webrtc. you may use checkSystemRequirements api to test the compatibility of current browser.

Even if the webrtc is not supported, this do not mean that agora error should stop execution of the web page right?

@plutoless
Copy link
Contributor

@yiannis-st correct. sorry for the inconvenience caused, maybe you can use a try catch to catch the error for now. I've raised an internal jira to engineer team

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

2 participants