Explorar el Código

fix(old-safari): check RTCRtpTransceiver exists before checking prototype

tags/v0.0.2
Leonard Kim hace 6 años
padre
commit
73c4b7ecb1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      modules/browser/BrowserCapabilities.js

+ 1
- 1
modules/browser/BrowserCapabilities.js Ver fichero

255
             return true;
255
             return true;
256
         }
256
         }
257
 
257
 
258
-        if (this.isSafariWithVP8()) {
258
+        if (this.isSafariWithVP8() && typeof window.RTCRtpTransceiver !== 'undefined') {
259
             // eslint-disable-next-line max-len
259
             // eslint-disable-next-line max-len
260
             // https://trac.webkit.org/changeset/236144/webkit/trunk/LayoutTests/webrtc/video-addLegacyTransceiver.html
260
             // https://trac.webkit.org/changeset/236144/webkit/trunk/LayoutTests/webrtc/video-addLegacyTransceiver.html
261
             // eslint-disable-next-line no-undef
261
             // eslint-disable-next-line no-undef

Loading…
Cancelar
Guardar