Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJeremiah Lugtu
9,910 PointsCan anyone expound on the mediaElement script we did?
$('audio, video').mediaelementplayer({
success: function(player, node) {
$('#' + node.id + '-mode').html('mode: ' + player.pluginType);
},
startLanguage: 'en',
translationSelector: true
});
Like expound each line of code, how we got there, or know what to use, etc...
I tried looking through the examples on the mediaElement website, but none of the code used here came up... Thank you.
nik
8,925 Pointsnik
8,925 PointsHe's just adding the necessary code for the video to come up correctly. If you're looking for more info on the script, visit the website that Nick linked as a resource at the bottom of the video.