Summary: | Autoplay muted videos stop playback of any streaming app in the background | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ibrahim Ennafaa <ibrahim> | ||||||||||
Component: | Media | Assignee: | Jer Noble <jer.noble> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Critical | CC: | commit-queue, eric.carlson, ibrahim, jer.noble, jonlee, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | Safari 10 | ||||||||||||
Hardware: | iPhone / iPad | ||||||||||||
OS: | iOS 10 | ||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=177920 | ||||||||||||
Attachments: |
|
Description
Ibrahim Ennafaa
2016-10-25 16:00:06 PDT
Hi, Is there any feedback on this issue? It is becoming more and more a blocker on our side and for our publishers. Here is another test page with a simple video tag on which we have the exact same issue: http://misc.teads.tv.s3.amazonaws.com/demo/product/test-webkit/video.html Steps: - Run a sound streaming app - Sound is playing in background - Launch Safari with the link above - Video is started muted and the streaming app is stopped! Thanks for your help We are aware of the issue and hope to look into it soon. Thanks Jon, Do you have any precision on a ETA for this issue to be fixed? This is becoming a blocker on our side and many publishers & users are complaining. Is there anything we could do or anyone we could reach out to and get more visibility on the process? Best, Ibrahim FYI the bug existed also on Chrome Android. It was fixed since : https://bugs.chromium.org/p/chromium/issues/detail?id=638463 It could help since Chrome is using a fork of Webkit ... Jon, any news on the prioritization of this bugfix? Hi everyone, Is there any update? Thanks, Ibrahim Hi Ibrahim, There's been some work done in https://bugs.webkit.org/show_bug.cgi?id=166347, but there's still more to do. I'll keep you updated here. Created attachment 299829 [details]
Patch
Comment on attachment 299829 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299829&action=review > Source/WebCore/html/HTMLMediaElement.cpp:6851 > + if (m_isPlayingToWirelessTarget) > + return true; This is obvious, so it is probably worth adding a comment to make sure this isn't accidentally changed in the future. > Tools/TestWebKitAPI/Tests/WebKit/ios/video-with-muted-audio-and-webaudio.html:11 > + function go() { > + var audioContext = new webkitAudioContext(); > + audioContext.resume(); > + > + var video = document.getElementsByTagName('video')[0]; > + video.play().then(playing).catch(notPlaying); > + } Nit: funky indentation. Created attachment 299834 [details]
Patch for landing
Created attachment 299854 [details]
Patch for landing
Created attachment 299858 [details]
Patch for landing
Comment on attachment 299858 [details] Patch for landing Clearing flags on attachment: 299858 Committed r211240: <http://trac.webkit.org/changeset/211240> Hi, Do you have an idea of when this fix is going to be released? Which iOS version will have it included? Best, Ibrahim (In reply to comment #14) > Do you have an idea of when this fix is going to be released? Which iOS > version will have it included? We don't discuss release schedules. Thanks Jon, Is there a way to get notified when the fix is going to be deployed? It is kind of difficult for us to communicate with our clients if we don't have more information about the fix deploy. They are using our technology which is affected by this bug. We appreciate the communication and the work done here. Ibrahim Not sure why this is still in "new". Moving to "resolved". The fix is in iOS 11. That said we're getting reports that this is still happening. If that is still the case, please follow b177920. Hi guys, It looks like there was a regression on this bug. It reappeared with iOS11. It was fixed in one of the iOS 10.x versions. But now we have the exact same issue with iOS11. Thanks, Ibrahim Moving back to resolved. We're tracking additional fixed in 177920. |