Make presentation playback continue if deskshare.xml was not found

Someone on the mailing list had some recordings which were using the 2.0
playback, but were missing the deskshare.xml file (which should always
be present for 2.0… strange). It's safe to continue loading the recording
playback if the deskshare.xml file is not found, the recording will just act
as if there were no deskshare start/stop events.
This commit is contained in:
Calvin Walton 2019-10-18 12:42:29 -04:00
parent 726406f0f5
commit 69aa493d90

View File

@ -641,7 +641,12 @@ function loadData() {
asyncRequest('GET', deskshareXML).then(function (response) {
processDeskshareXML(response);
}).catch(function(error) {
logger.error("==Couldn't load deskshare.xml", error);
if (error.status == 404) {
logger.warn("==Couldn't find deskshare.xml, assuming there's no deskshare");
document.dispatchEvent(new CustomEvent('data-ready', {'detail': 'deskshare-xml'}));
} else {
logger.error("==Couldn't load deskshare.xml", error);
}
});
};