Support » Plugin: mb.YTPlayer for background videos » Video Freeze/Image Fallback

  • Resolved olajideolaolorun


    1. The fall back. How do i get it to fall back to a background cause when i set a background it covers the video. But i want it to be able to fall back to a background when the video is done or if there is no video.
    The problem is that my theme uses
    <img class="bg" src="<?php echo $image_url ; ?>" alt="" />
    for the background image and not the default body css. I tried manipulating and everything, even tried adding an id to the img tag, doesnt work.

    2. There is a problem with the plugin on Firefox on a PC. The video freezes, i tested to make sure it wasnt just my PC which is fast by the way, its not. Its the same on other PC running Firefox. Checked other video background sites and they work perfectly so it has to be with the plugin. For large resolution Pcs or something.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pupunzi


    For the first issue you should remove the <img class=”bg” src=”<?php echo $image_url ; ?>” alt=”” /> from your theme and set it as background image; Something like:

    body {
      background: url(<?php echo $image_url ; ?>);
      background-size: cover;
      background-attachment: fixed;

    For the second one, soon I’ll update the mb.YTPlayer removing the Flash API and using the iframe API so that it will render videos using the HTML5 VIDEO tag instead of the flash player (that for all the browsers that support the Video tag; for the others the API will serve the video using the Flash player).
    This should prevent the Freezes problem according to the bandwith available.

    Oh wow, and to think i did that the long way. Adding and using the element function.

    For the second, yey. Can’t wait.

    Very great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video Freeze/Image Fallback’ is closed to new replies.