Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Uses stopping tracks and use MediaStream.stop method only if defined. Based on previous code and inspired by PR #390.
damencho249e032ad647
diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.jsindex e8742cac06..eb1b4242be 100644--- a/modules/RTC/RTC.js+++ b/modules/RTC/RTC.js@@ -269,20 +269,14 @@ var RTC = {* @param mediaStream MediaStream object to stop.*/stopMediaStream: function (mediaStream) {- mediaStream.getAudioTracks().forEach(function (track) {- // stop() not supported with IE- if (track.stop) {- track.stop();- }- });- mediaStream.getVideoTracks().forEach(function (track) {+ mediaStream.getTracks().forEach(function (track) {// stop() not supported with IEif (track.stop) {track.stop();}});- //+ // leave stop for implementation still using itif (mediaStream.stop) {mediaStream.stop();}