Embedded YouTube videos in HTML5 standalone app iOS 8.3 opening YouTube app

后端 未结 1 1801
忘了有多久
忘了有多久 2021-01-02 14:57

Apple recently fixed the error on iOS 8 where YouTube videos would not play on a WebApp (Why HTML5 video doesn\'t play in IOS 8 WebApp(webview)?). This error was fixed in iO

相关标签:
1条回答
  • 2021-01-02 15:33

    I was sent this answer from the Apple Support Communities. All I had to do was to add '-nocookie' after youtube in the src of the iframe

    <!DOCTYPE html>
    <head>
    <meta charset="utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>HTML5 Video Standalone Test</title>
    <style>
       body {
        margin:0;
       }
    </style>
    </head>
    <body>
        <iframe width="700" height="394" src="//www.youtube-nocookie.com/embed/xspoREpBOhY?rel=0" frameborder="0" allowfullscreen></iframe>
    </body>
    </html>
    

    It worked for me in my test app.

    0 讨论(0)
提交回复
热议问题