Here is my video code:
<video id="select-plan-vid" autoplay="" controlslist="nodownload" src="myvideo.mp4"></video>
The controls are hidden (correct), BUT I would still like users to be able to pause/play the video by clicking on it (or by pressing space bar, as I'm used to that method personally). I don't like that users can't pause it if they want to do so.
EDIT:
I have attempted Zayadur's answer; here is my javascript (put in the header of my page):
<script>
window.onload = function () {
var clickPlay = document.getElementById("select-plan-vid");
clickPlay.addEventListener("click", function () {
if (video.paused == true) {
video.play();
} else {
video.pause();
}
});
}
</script>
(Currently not working)