Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
You can use plugins with the MediaElement player. Learn how!
Links
- MediaElement.js homepage
- Treehouse video on minification
- MediaElement plugin installation
- Skip-back plugin documentation
Code
Final snippet to customize player:
$('video, audio').mediaelementplayer({
features: ['playpause', 'tracks', 'progress', 'skipback'],
startLanguage: 'en',
skipBackInterval: 4
});
Minification
- This video, from the course Front End Performance Optimization, is a great introduction to minification.
Demo CSS Style Page
Here's a link to a demo CSS file to style the player. You might need to right-click and "save link as..." to download it, or just copy it from your browser and paste it into an empty file.
The styles are basic, but should give you an idea of how to begin applying your own styles to the player! To use it, add it to the project file underneath the other styles, something like the following:
<link href="skip-back/skip-back.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<!-- player styles below other styles -->
<link href="path/to/mejs-treehouse.css" rel="stylesheet">
</head>
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up