So I am using Muaz Khans RecordRTC to record Video and Audio for a website. I have been trying to write a script to see if the recorded video is being played or not. The problem I'm having is how to reference the video that has been created.
I have tried the following with no luck.
function vidplay() {
var video = document.getElementById("videoURL");
if (video.paused) {
//DESIRED ACTION
} else {
//DESIRED ACTION
}
}
Any help would be appreciated.
Please check this demo: https://jsfiddle.net/ddxadv3y/