Glimesh / glimesh.tv

Glimesh is a next generation live streaming platform built by the community, for the community.
https://glimesh.tv
Other
465 stars 77 forks source link

Tell users when WebRTC is not working in their browser #818

Closed clone1018 closed 1 year ago

clone1018 commented 2 years ago

Apparently Janus can help us with this via:

// Make sure the browser supports WebRTC
if(!Janus.isWebrtcSupported()) {
  bootbox.alert("No WebRTC support... ");
  return;
}

Found via https://janus-legacy.conf.meetecho.com/streamingtest.js

clone1018 commented 2 years ago

Actual source of that function:

Janus.isWebrtcSupported = function() {
    return !!window.RTCPeerConnection;
};
clone1018 commented 1 year ago

This is implemented on production now, and is very useful!