html5media icon indicating copy to clipboard operation
html5media copied to clipboard

Not work when height and width set to percentage

Open adayan opened this issue 10 years ago • 3 comments

Hi,

When I set width and height to video use percentage, Firefox and ie8 cannot show the video, it seems that getDimension method count incorrectly when the attributes with '%', eg. height='30%'. Is there any solution for this problem?

Thanks

adayan avatar Jan 20 '15 01:01 adayan

The width and height attributes of a video need to be specified in pixels. Specifying them as percentages is not supported at this time.

On 20 Jan 2015, at 01:31, adayan [email protected] wrote:

Hi,

When I set width and height to video use percentage, Firefox and ie8 cannot show the video, it seems that getDimension method count incorrectly when the attributes with '%', eg. height='30%'. Is there any solution for this problem?

Thanks

— Reply to this email directly or view it on GitHub.

etianen avatar Jan 20 '15 10:01 etianen

Any plans to add percentage support?

Ghostavio avatar May 31 '15 12:05 Ghostavio

btw, here's a workaround (add this to your css): .video-wrapper span { height: 100% !important; }

Ghostavio avatar May 31 '15 13:05 Ghostavio