Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b020e44

Browse files
committed
Check for the right method in Janus.isWebrtcSupported of janus.js (fixes meetecho#1527)
1 parent e027f0a commit b020e44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎html/janus.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ Janus.init = function(options) {
381381
// Helper method to check whether WebRTC is supported by this browser
382382
Janus.isWebrtcSupported = function() {
383383
return window.RTCPeerConnection !== undefined && window.RTCPeerConnection !== null &&
384-
navigator.getUserMedia !== undefined && navigator.getUserMedia !== null;
384+
navigator.mediaDevices !== undefined && navigator.mediaDevices !== null &&
385+
navigator.mediaDevices.getUserMedia !== undefined && navigator.mediaDevices.getUserMedia !== null;
385386
};
386387

387388
// Helper method to create random identifiers (e.g., transaction)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /