text: function isMediaRecorderCompatible() {
      if (isFirefox || isSafari || isEdge) {
          return true;
      }
  
      var nVer = navigator.appVersion;
      var nAgt = navigator.userAgent;
      var fullVersion = '' + parseFloat(navigator.appVersion);
      var majorVersion = parseInt(navigator.appVersion, 10);
      var nameOffset, verOffset, ix;
  
      if (isChrome || isOpera) {
          verOffset = nAgt.indexOf('Chrome');
          fullVersion = nAgt.substring(verOffset + 7);
      }
  
      // trim the fullVersion string at semicolon/space if present
      if ((ix = fullVersion.indexOf(';')) !== -1) {
          fullVersion = fullVersion.substring(0, ix);
      }
  
      if ((ix = fullVersion.indexOf(' ')) !== -1) {
          fullVersion = fullVersion.substring(0, ix);
      }
  
      majorVersion = parseInt('' + fullVersion, 10);
  
      if (isNaN(majorVersion)) {
          fullVersion = '' + parseFloat(navigator.appVersion);
          majorVersion = parseInt(navigator.appVersion, 10);
      }
  
      return majorVersion >= 49;
  }
  