I am using video tags and jQuery to display a HTML5 video playback.
How can I show an image while the video is still loading for displaying?
I would use jQuery for this..
Thanks in advance!
PD: Display an image when the video preloads.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no need for JQuery to achieve this as the html5 video tag comes with its own poster attribute. You can use that to specify what image should be displayed while the video loads. For instance if you have an image called
myImage.jpgyou can do the following:<video controls="controls" poster="myImage.jpg">. Refer here for more info:https://www.w3.org/wiki/HTML/Elements/video#HTML_Attributes