iPad HTML5 Video element not displaying poster

♀尐吖头ヾ 提交于 2019-12-12 10:23:09

问题


I'm building an iPad app that loads information dynamically via XML, some of which is displayed in video tags.

The tags themselves work properly and the video can load and play, but for some reason, the iPad doesn't want to render the poster attributes for the videos.

However, once I play any of the videos, all of a sudden all of the posters will show up anytime a video element is displayed.

Anyone else had problems getting video elements to display posters on page load?

Here's how I'm embedding the video:

<video id="videoPlayer" src=" + videoURL + " poster=" + posterURL + " controls="controls" width="480" height="360">&nbsp;</video>

回答1:


Might be an unconventional fix, but by loading the poster image somewhere else on the page (that doesn't get displayed to the user) the poster would miraculously show up whenever I loaded my video nodes.



来源:https://stackoverflow.com/questions/3874154/ipad-html5-video-element-not-displaying-poster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!