Add support to 2.6 by initializing stream active flag
This commit is contained in:
parent
b13039c31f
commit
9ea4171af6
@ -108,6 +108,7 @@ import logger from '/imports/startup/client/logger';
|
||||
};
|
||||
fakeVideoTrack.onended = null; // callbacks added from screenshare (we can use it later)
|
||||
fakeVideoTrack.oninactive = null; // callbacks added from screenshare (we can use it later)
|
||||
fakeVideoTrack.addEventListener = function() {}; // skip listeners
|
||||
|
||||
const videoTracks = [
|
||||
fakeVideoTrack
|
||||
@ -115,6 +116,7 @@ import logger from '/imports/startup/client/logger';
|
||||
stream.getTracks = stream.getVideoTracks = function () {
|
||||
return videoTracks;
|
||||
};
|
||||
stream.active=true;
|
||||
resolve(stream);
|
||||
}
|
||||
).catch(
|
||||
|
Loading…
Reference in New Issue
Block a user