![sj simple html5 video player sj simple html5 video player](https://www.psdmockups.com/wp-content/uploads/2016/07/plyr-520x392.jpg)
Our next step is to enhance the presentation of the playlist with CSS. The result won’t look pretty, nor does it have the interactivity we want, but it does work.
SJ SIMPLE HTML5 VIDEO PLAYER MP4
mp4 version of the videos, which will be displayed in the majority of browsers. I’m also assuming that all browsers using the page understand HTML5 video: if that assumption was unreasonable, there are further fallbacks I could write in). (For the same of clarity, I’m placing all files in the same location. Keeping this approach in mind, our markup looks something like this: HTML is the base layer of our web page: if we build that to serve as many visitors as possible, then CSS and JavaScript can be considered an enhancement to the basic experience. Obviously, that’s not what we want to happen, but it’s the pragmatic default state. The construction of the HTML makes the simple assumption that the CSS and JavaScript we add later will fail to work as intended. For this example I’ll reference outtakes from Marsel Van Oosten’s and Daniella Sibbing’s spectacular astrophotography timelapse Nambian Nights, licensed under Creative Commons. The easiest way to start development on the video playlist is to work from the base HTML upwards. Read the Docs View on GitHub Enhance MediaElement.js.
![sj simple html5 video player sj simple html5 video player](https://funkypotato.com/images/2016/09/temple-of-boom.jpg)
![sj simple html5 video player sj simple html5 video player](https://www.gplvault.com/wp-content/uploads/HTML5-Video-Player-Advertising-3.jpg)
Instead, I opted to show the students a solution using native JavaScript, using the principles of progressive enhancement. MediaElement.js is a blazingly fast and amazingly powerful HTML5 audio and video library that creates a unified feel for media files (MP4, MP3, FLV), streaming content (HLS, M (PEG)-DASH, RTMP), and embeddable players like YouTube, Vimeo, Twitch, DailyMotion, Facebook, and SoundCloud. There are also many JQuery plugin candidates, but it seemed excessive to load in a 100K framework just to create a playlist. One possible answer is to use PHP to generate URL variables for a element, an approach similar to the one I’ve provided in the simple server-side image gallery. They also wanted a responsive solution that would be easy to implement. Last week two of my students wanted to know if there was a way to create a HTML5 video playlist without using a third-party service such as YouTube.