WordPress.org

Forums

mb.YTPlayer for background videos
[resolved] Video Freeze/Image Fallback (3 posts)

  1. olajideolaolorun
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/wpmbytplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    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:

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

    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.

  3. olajideolaolorun
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.