Prevent video dropout with audioFallbackEnabled set to false

This commit is contained in:
Zach Fox 2019-11-27 13:56:55 -05:00
parent 5eae6711e6
commit 327508aa0d

View file

@ -258,11 +258,15 @@ var publisher;
function startTokboxPublisher(stream) { function startTokboxPublisher(stream) {
publisher = document.createElement("div"); publisher = document.createElement("div");
var publisherOptions = { var publisherOptions = {
videoSource: stream.getVideoTracks()[0], audioFallbackEnabled: false,
audioSource: null, audioSource: null,
fitMode: 'contain',
frameRate: 30,
height: 720,
insertMode: 'append', insertMode: 'append',
width: 1280, publishAudio: false,
height: 720 videoSource: stream.getVideoTracks()[0],
width: 1280
}; };
publisher = OT.initPublisher(publisher, publisherOptions, function(error){ publisher = OT.initPublisher(publisher, publisherOptions, function(error){