I have a script (html5/js) that plays different videos depending on what the user selects
})), this.videoButton.addEventListener("mousedown", this.showVideo.bind(this)), this.videoButton.addEventListener("mouseover", _global.showPointer.bind(this)), this.videoButton.addEventListener("mouseout", _global.resetPointer.bind(this)), _global.videoFile) {
case "mindful":
this.videoFile = "video/vezo_mindful.mp4";
break;
case "sad":
this.videoFile = "video/vezo_sad.mp4";
break;
case "ecstatic":
this.videoFile = "video/vezo_ecstatic.mp4";
break;
case "goodMorning":
this.videoFile = "video/vezo_goodMorning.mp4"
}
this.videoElement.ended = !1, this.videoElement.currentTime = 0, this.addEventListener("update", this.updateVideo.bind(this)), this.allowInput = !1, this.continueButton.visible = !1
}
The script loads a modal window with the video inside a canvas. This works in Chrome and other browsers. However, Firefox does not handle mp4 files well. Wondering if there is a way to modify to include both mp4 and ogg files.
Any help is appreciated.