#24902 closed defect (bug) (fixed)
video/audio elements not recognized in IE6-8 even with MediaElement.js
| Reported by: | nacin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Media | Version: | |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description
http://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2013-07-31&sort=asc#m653229
We need to do a poor man's HTML5 shiv for the audio and video elements whenever we want to use them.
wp-mediaelement.js is too late — it *must* occur prior to the element in the DOM.
Attachments (4)
Change History (13)
#4
@
13 years ago
The other issue could be tracked down too...
There are differences between SCRIPT_DEBUG on and off. If on all is fine, if not, the sky is falling down.
SCRIPT_DEBUG false: <param name="source" value="silverlightmediaelement.xap"/>
SCRIPT_DEBUG true: <param name="source" value="http://example.com/wp-includes/js/mediaelement/silverlightmediaelement.xap"/>
Why? That's why!
It's going through all <script> and tries to find mediaelement-and-player.*. Because it's going through load-scripts.php as ?load=foo,bar,wp-mediaelement it can't find it.
Solution: Set pluginPath, see 24902.3.diff (We will do it in a better way without hardcoding it.)
#5
@
13 years ago
24902.4.diff fixes the issues with the missing path to the mediaelement directory when scripts are concatenated.
#6
@
13 years ago
Just getting home and testing all this. The changes in [24931] and [24932] seem to make the video play as expected for me in IE 7-9 (it uses Flash and without Flash it falls back to a download link in a box).
For the SCRIPT_DEBUG issue, 24902.4.diff works for me but .3 did not.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
echo "<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->";for
wp_video_shortcodeandecho "<!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->";for
wp_audio_shortcode.