jcadima
4/24/2018 - 7:53 PM

Video.js Laravel


https://coolestguidesontheplanet.com/videodrome/videojs/

<video
  id="videoPlayer"
  class="video-js vjs-default-skin vjs-big-play-centered"
  controls
  width="700" height="380"
  data-setup='{"autoplay": false, "fluid": true, "techOrder": ["youtube", "html5"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v={{$current_video->youtube_id }}"}] }'
  >
</video>


Needs data-setup='{"fluid": true}' to be responsive for any size