I have the below click function so that when a video is clicked the video plays. It works perfectly on desktop browsers, but on tablets does not. You press it and the video instantly pauses. I believe this is to do with the click function looking for a click and there not being one on a tablet but I'm unsure how to solve it.
HTML
<div class="section">
<div class="video">
<video poster="img/my-poster.jpg"><source src="mp4/low-res/my-video.mp4" type="video/mp4"></video>
</div>
</div>
jQuery
$(document).ready(function () {
$('.section video').on("click touchstart", function() {
this.paused ? this.play() : this.pause();
});
});