[wp-trac] [WordPress Trac] #38172: Enable Video Headers in Custom Headers
WordPress Trac
noreply at wordpress.org
Fri Oct 14 23:13:53 UTC 2016
#38172: Enable Video Headers in Custom Headers
----------------------------+--------------------
Reporter: davidakennedy | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.7
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+--------------------
Comment (by bradyvercher):
Here's a thought based on the discussion earlier: What if the the video
tag was rendered using JavaScript instead of being printed directly? Some
JavaScript is going to be required for the play/pause button anyway.
The header image would be printed in a container to serve as the default
display. Then a script would determine if the video file could be played
using the native browser API. If so, the image would be replaced with the
video when it's ready to play.
Going that route would allow some of the template tags in the patch to be
dropped and could potentially allow the environment to be tested to decide
whether or not the video should be displayed at all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38172#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list