• Resolved Eric Hepperle

    (@codeslayer2010)


    I’m displaying a Rumble video on my homepage with EmbedPress Lite. There was a “black bars” effect at pretty much every screen size. I tinkered around and came up with the following custom CSS which works at every width except at 600px and below:

    .elsm-vid-loop iframe {
       max-height: 33vh !important;
    }
    @media only screen and (max-width: 800px) {
       .elsm-vid-loop iframe {
           max-height: 28vh !important;
       }
    }

    I then added the following to try to address the 600px breakpoint, but it doesn’t respond at all. I believe I’m either targeting the wrong selector or property:

    @media only screen and (max-width: 600px) {
       .elsm-vid-loop iframe {
          max-height: 18vh !important;
       }
       .ose-embedpress-responsive > iframe {
          height: unset !important;
       }
    }

    Steps to Reproduce:

    1. Go to http://elijahlisttv.org/ in Chrome
    2. Right-click to enter Dev Tools Inspector mode
    3. Hit “CTRL + SHIFT + M” on Windows to inspect as a mobile device
    4. In the “Dimensions” dropdown select “Responsive”
    5. Set the width to 600 px

    || EXPECTED BEHAVIOR:

    1. The video in the EmbedPress widget should span the full width of its container
    2. The height should auto scale proportional to the the width
    3. There should be no “black bars” effect on either side, nor on left and right
    4. There should be no distortion in the video thumbnail

    || ACTUAL BEHAVIOR:

    1. There is a “black bars” effect on either both sides of the video, taking up about 50% of the width
    2. The video thumbnail appears about 50% smaller than the width that is available

    || AFFECTED URL: http://elijahlisttv.org/

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support AR Rasel

    (@arrasel403)

    Hi @codeslayer2010,

    Hope you are doing well.

    I have checked the issue, please use the below custom CSS code and retry once now.

    .ose-rumble\.com.ose-embedpress-responsive {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
     }
      
    .ose-rumble\.com.ose-embedpress-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%!important;
     }

    Hope your issue will be fixed. Meanwhile, please remove your CSS code and add the above shared CSS code.

    Let me know how it goes. Thanks!

    Thread Starter Eric Hepperle

    (@codeslayer2010)

    Thank you so much @arrasel403 ! The code you provided did the trick and my video embed displays correctly in all sizes!

    Plugin Support AR Rasel

    (@arrasel403)

    Hi @codeslayer2010,

    I’m glad I could assist. Don’t hesitate to reach out to our support team if you need help in the future.

    If you have a moment, could you please take 30 seconds to leave us a review at this link: https://wordpress.org/support/plugin/embedpress/reviews/#new-post

    Your feedback will help us improve and provide even better service.

    Thank you! Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Black Bars in iframe Rumble vid at 600px’ is closed to new replies.