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 trial
Jeriah Bowers
Front End Web Development Techdegree Graduate 20,590 PointsMediaeelementplayer not working properly.
Can you see anything wrong with my code? It's very basic rn that's why I can't figure out what's wrong.
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" src="css/mediaelementplayer.css">
</head>
<body>
<video>
<source src="video/video.mp4" type="video/mp4">
<source src="video/video.ogg" type="video/ogg">
</video>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="js/mediaelement-and-player.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>
JS
$("video").mediaelementplayer();
Any idea what I may be doing?? Thanks.
1 Answer
Matthew Long
28,407 PointsAre you sure all of your scripts and links are going to the right places? When I did this I just used CDNs instead of adding them to the workspace. Also, does the video tag need a class? I think I remember it being something like class="mejs__player".