How to set preload=”auto” by defaut for native video playlists
-
Hi, I’m looking for a hook to set the preload parameter to “auto” for the videos of all my playlists. I use the wp native [playlist] shortcode.
The first objective is to avoid the waiting time when clicking on play. The second objective is to show the first frame of the video as a cover, in place of the black frame I currently have. Only IE is managing to show the first frame of the videos and, for once, it looks much better on IE!
Looking at the codex, the preload parameter doesn’t exist for the playlist shortcode, but only for the video shortcode. In this last case, the defaut value for preload is metadata.
This is the current output I have using the wp native [playlist] shortcode:
<video preload="none" src="https://example.com/wp-content/uploads/2016/12/video.mp4" style="width: 100%; height: 100%;" height="258" width="470"></video>
Any help would be welcome.
- The topic ‘How to set preload=”auto” by defaut for native video playlists’ is closed to new replies.