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

General Discussion Interactive Video Player

Travis Carney
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Carney
Front End Web Development Techdegree Graduate 17,797 Points

when browser is thin mejs__overlay height is much than my video.

This results in there being a black bar between the video and the control bar. If the window is pulled wider the control bar goes into the middle of the video because the mejs__overlay really doesn't want to get any taller.

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Interactive Video Player</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <script src="https://code.jquery.com/jquery-3.1.1.js" integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA=" crossorigin="anonymous"></script>

    <link rel="stylesheet" href="normalize.css">

    <script src="https://cdn.jsdelivr.net/mediaelement/latest/mediaelement-and-player.min.js"></script>
    <link href="https://cdn.jsdelivr.net/mediaelement/latest/mediaelementplayer.css" rel="stylesheet">

    <link rel="stylesheet" href="main.css">
</head>

<body>
    <video  width="100%" class="mejs__player" id="video" controls>
      <source src="video\video.mp4" type="video/mp4">
      <source src="video\video.ogg" type="video/ogg">
    </video> 
.orange {
  color: orange;
}


#mep_0 > div > div.mejs__controls {
  background: green;
}