Why HTML5 video doesn't play in IOS 8 WebApp(webview)?

前端 未结 6 1862
离开以前
离开以前 2020-11-29 17:45

Simple HTML5 video plays on safari browser. but after adding it to home screen(Standalone WebApp), it doesn\'t work. It is working on iOS7 but stopped working on iOS8.

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 18:15

    I have two apps that use HTML5 video. One stopped working, the other not. There were two differences:

    • The one that still works added the source tags to the video tag AFTER adding the video tag to the DOM.
    • The app that still works has autoplay set to false ()

    The first one made no difference, the second one made the app work again.

提交回复
热议问题