Fixes jitsi meet to work with the renamed events and methods from the latest version of lib-jitsi-meet.

This commit is contained in:
hristoterezov 2016-03-03 14:53:36 +02:00
parent 25a9928758
commit 30e1e3b23a
2 changed files with 5 additions and 5 deletions

View File

@ -539,7 +539,7 @@ export default {
if (localVideo) {
// this calls room.removeTrack internally
// so we don't need to remove it manually
promise = localVideo.stop();
promise = localVideo.dispose();
}
localVideo = stream;
@ -575,7 +575,7 @@ export default {
if (localAudio) {
// this calls room.removeTrack internally
// so we don't need to remove it manually
promise = localAudio.stop();
promise = localAudio.dispose();
}
localAudio = stream;
@ -612,7 +612,7 @@ export default {
if (shareScreen) {
createDesktopTrack().then(([stream]) => {
stream.on(
TrackEvents.TRACK_STOPPED,
TrackEvents.LOCAL_TRACK_STOPPED,
() => {
// if stream was stopped during screensharing session
// then we should switch to video

View File

@ -193,9 +193,9 @@ LocalVideo.prototype.changeVideo = function (stream) {
let endedHandler = () => {
localVideoContainer.removeChild(localVideo);
this.VideoLayout.updateRemovedVideo(this.id);
stream.off(TrackEvents.TRACK_STOPPED, endedHandler);
stream.off(TrackEvents.LOCAL_TRACK_STOPPED, endedHandler);
};
stream.on(TrackEvents.TRACK_STOPPED, endedHandler);
stream.on(TrackEvents.LOCAL_TRACK_STOPPED, endedHandler);
};
export default LocalVideo;