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

This commit is contained in:
damencho 2015-11-17 14:27:26 -06:00
parent 9f1e953e8a
commit 94b54279f2
1 changed files with 2 additions and 2 deletions

View File

@ -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 {