Loading HTML5 video on iPad via onclick event tied to a div
Posted
by
joncys
on Stack Overflow
See other posts from Stack Overflow
or by joncys
Published on 2012-04-05T08:15:36Z
Indexed on
2012/06/04
16:40 UTC
Read the original article
Hit count: 196
I'm developing an HTML5 application (a game), that automatically preloads 5 video files. I'm able to do so correctly on Safari for PC, so there are no overlooked problems with file formats, codecs or such. The load fails on an iPad. As an official guide for video on iOS puts it:
This means the JavaScript play() and load() methods are also inactive until the user initiates playback, unless the play() or load() method is triggered by user action. In other words, a user-initiated Play button works, but an onLoad="play()" event does not.
Does this mean, that I have no means to initiate the loading of video after a user initiated action, if that action hasn't been tied to a video
element (user clicked on a regular div — I request loading and displaying of a video, compared to the user actually clicking on a video
element to load and play that particular element)?
Thanks for your help!
© Stack Overflow or respective owner