Inserting HTML5 video using JavaScript for iPad

前端 未结 3 1638
误落风尘
误落风尘 2020-12-28 22:10

I am trying to insert a video into HTML using jQuery for iPad but all I see is a black screen. If I add the video tag directly to the HTML page all seems to work fine.

3条回答
  •  感情败类
    2020-12-28 22:41

    Re ampts answer: please note calling load() on the video element only works if your code is triggered by a user action, like a click handler.

    For me this didn't work as apple doesn't seem to think that the history handler (hash change) is a user triggered handler.

    For more details see apples documentation on javascript and the video element

提交回复
热议问题