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) { if (mediaStream.addEventListener) {
// chrome // chrome
if(typeof mediaStream.active !== "undefined") if(typeof mediaStream.active !== "undefined")
mediaStream.inactive = handler; mediaStream.oninactive = handler;
else else
mediaStream.onended = handler; mediaStream.onended = handler;
} else { } else {
@ -322,7 +322,7 @@ var RTC = {
if (mediaStream.removeEventListener) { if (mediaStream.removeEventListener) {
// chrome // chrome
if(typeof mediaStream.active !== "undefined") if(typeof mediaStream.active !== "undefined")
mediaStream.inactive = null; mediaStream.oninactive = null;
else else
mediaStream.onended = null; mediaStream.onended = null;
} else { } else {