From 94b54279f253c92cf683cf32ea81427b260ee096 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 17 Nov 2015 14:27:26 -0600 Subject: [PATCH] Fixes wrong handler name, which causes adding multiple local video tags in the local video. --- modules/RTC/RTC.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.js index 9ac19b204..790e81708 100644 --- a/modules/RTC/RTC.js +++ b/modules/RTC/RTC.js @@ -303,7 +303,7 @@ var RTC = { if (mediaStream.addEventListener) { // chrome if(typeof mediaStream.active !== "undefined") - mediaStream.inactive = handler; + mediaStream.oninactive = handler; else mediaStream.onended = handler; } else { @@ -322,7 +322,7 @@ var RTC = { if (mediaStream.removeEventListener) { // chrome if(typeof mediaStream.active !== "undefined") - mediaStream.inactive = null; + mediaStream.oninactive = null; else mediaStream.onended = null; } else {