Fix script error for IE

This commit is contained in:
Ayanami 2022-05-17 00:32:57 +09:00
parent f2c2842dfa
commit d60673bc6f
No known key found for this signature in database
GPG Key ID: 0CABDF03077D92E4

View File

@ -864,7 +864,7 @@ $(document).ready(function() {
var videoElement = document.querySelector('video');
try {
videoElement.srcObject = stream;
} catch {
} catch (e) {
videoElement.src = window.URL.createObjectURL(stream);
}
videoElement.play();