Fixes wrong handler name, which causes adding multiple local video tags in the local video.
This commit is contained in:
parent
9f1e953e8a
commit
94b54279f2
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue