I am using a lightbox to display images.
I don't know what's wrong. I've tried the slim and the normal version of JQuery
$("#lightboxID").click();
jQuery('.play-img-cont.videoDiv').show();
jQuery('.play-img-cont.videoImage').hide();
$('.video-js, #my-video_html5_api').show();
// This is where i get the error of uncaught type error
jQuery('video')[0].load();
jQuery('video')[0].play();
var myPlayer = videojs('pubvid');
myPlayer.play();
myPlayer.on('ended', function() {
jQuery('.play-img-cont, .videoImage').show();
jQuery('.videoDiv').hide();
this.exitFullscreen();