<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Change in behaviour of playsinline in iOS 10 breaks YouTube functionality"
   href="https://bugs.webkit.org/show_bug.cgi?id=160852">160852</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Change in behaviour of playsinline in iOS 10 breaks YouTube functionality
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>iOS
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tony.short2&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Our iOS app presenting a YouTube video within a WKWebView is no longer playing inline on loading.  The video now starts in Full Screen and the whilst the user can manually make it inline, the previous behaviour was for it to start playing inline.

This changed sometime between iOS 10 beta 2 and beta 5, and this happens on a device running iOS 10 beta 5 (an iPhone 6), but works fine as before on an iOS simulator (launched from XCode 8 beta 5).

The official YouTube helper app, shows this incorrect behaviour: <a href="https://github.com/youtube/youtube-ios-player-helper">https://github.com/youtube/youtube-ios-player-helper</a>

The problem may well lie in how the YouTube script creates their &lt;video&gt; element, and how they are using webkit-playsonline &amp; playsonline.  Another developer has raised this with Google (<a href="https://code.google.com/p/gdata-issues/issues/detail?id=8487">https://code.google.com/p/gdata-issues/issues/detail?id=8487</a>) and myself on SO (<a href="http://stackoverflow.com/questions/38879065/why-dont-youtube-videos-play-inline-in-ios-10-beta-5/38885359#38885359">http://stackoverflow.com/questions/38879065/why-dont-youtube-videos-play-inline-in-ios-10-beta-5/38885359#38885359</a>), but no response.  We appreciate it may be on YouTube to fix this, but with no quick response we're worried that iOS 10 will be released and it will have significant impact on the UI, and I imagine a lot of apps will be affected by this.  I am hoping this can be resolved by either the Webkit or the YouTube team.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>