Skip to content

Instantly share code, notes, and snippets.

@sgon00
Created September 18, 2014 14:36
Show Gist options
  • Save sgon00/70704c4657fcc95ae5a3 to your computer and use it in GitHub Desktop.
Save sgon00/70704c4657fcc95ae5a3 to your computer and use it in GitHub Desktop.
<video id="video_1" class="video-js vjs-default-skin vjs-big-play-centered"
controls preload="auto" width="267" height="150"
poster="img/videos/1.jpg"
data-setup='{"autoplay": false}'>
<source src="videos/1.mp4" type='video/mp4' />
</video>
@joeflateau
Copy link

<script>
   $("#video_1").one('click', function(){ videojs(this).requestFullscreen(); });
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment