A way to change video SRC priority and order? Want to list WebM first, then MP4
-
I’m looking to carry both HEVC mp4 files and their WebM equivalents on my pages from now on. I have already made a test page with the HEVC-based mp4 files uploaded and running. Unfortunately, of course, they do not play in anything but Safari and Hardware-Accelerated IE or Edge (and on my test iOS and Android devices). Desktop Firefox and Android are out of luck.
No problem, I thought, because then I uploaded the webm equivalents. According to this page here it should just be a matter of changing the order of the src list so that webm is listed first (so Chrome and Firefox play it back) then listing the HEVC mp4 src underneath it. Sounded like the best of both worlds; anyone on Chrome and Firefox visiting my page would get the WebM file, and IE/Edge/Safari would just ignore the WebM file and drop down to the HEVC mp4 file.
BUT – the problem is that WordPress seems to be ignoring my changes to the order, at least in the “text” mode of the Post editor. I’ve tried changing the WebM src link to be before the mp4 src link, but it doesn’t matter; when I update the post, and check the HTML page source, it is always putting MP4 first…which means, of course, that I don’t get any video in Chrome/Firefox.
So the question is….how can I get WordPress to respect the fact that I’m trying to change the priority order of my media files around? Am I missing something?
The topic ‘A way to change video SRC priority and order? Want to list WebM first, then MP4’ is closed to new replies.