We’re testing upgrading this plugin to the new 1.2 version, but the videos don’t display.
This appears to be because the new JS that is included isn’t setting the padding-bottom on the .rve elements properly.
I stuck some debug statements into the JS file to see what was happening. It appears that the JS is expecting the iframe to have a height and width attribute, and calculates the padding-bottom from those. In our case (youtube embed) the iframe does not have those attributes, so the calculated padding-bottom percentage ends up being equal to “NaN”, and thus the padding-bottom property is trying to be set to “NaN%”.
The video is being embedded using the auto-embed feature (just a URL pasted into the post). I tried using the [embed] tag as well, specifying a height and width, but wordpress is always outputting an iframe without a height and width attribute in the .rve container.
I don’t recall if 3.5 was adding height and width attributes to the iframes it output, but 3.6 is definitely not. Any fallback solutions for when the height and width attributes aren’t available?
- The topic ‘1.2 Doesn't Work’ is closed to new replies.