Explorar el Código

Fixes wrong handler name, which causes adding multiple local video tags in the local video.

master
damencho hace 9 años
padre
commit
94b54279f2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      modules/RTC/RTC.js

+ 2
- 2
modules/RTC/RTC.js Ver fichero

@@ -303,7 +303,7 @@ var RTC = {
303 303
         if (mediaStream.addEventListener) {
304 304
             // chrome
305 305
             if(typeof mediaStream.active !== "undefined")
306
-                mediaStream.inactive = handler;
306
+                mediaStream.oninactive = handler;
307 307
             else
308 308
                 mediaStream.onended = handler;
309 309
         } else {
@@ -322,7 +322,7 @@ var RTC = {
322 322
         if (mediaStream.removeEventListener) {
323 323
             // chrome
324 324
             if(typeof mediaStream.active !== "undefined")
325
-                mediaStream.inactive = null;
325
+                mediaStream.oninactive = null;
326 326
             else
327 327
                 mediaStream.onended = null;
328 328
         } else {

Loading…
Cancelar
Guardar