| Summary: | [iOS] Playback does not pause when deselecting route and locking screen. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jer Noble <jer.noble> | ||||||
| Component: | New Bugs | Assignee: | Jer Noble <jer.noble> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Jer Noble
2015-09-02 14:15:53 PDT
Created attachment 260449 [details]
Patch
Comment on attachment 260449 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=260449&action=review > Source/WebCore/html/MediaElementSession.cpp:295 > + bool oldHasActiveRoute = m_playbackTarget && m_playbackTarget->hasActiveRoute(); > + bool newHasActiveRoute = device->hasActiveRoute(); > m_playbackTarget = WTF::move(device); > client().setWirelessPlaybackTarget(*m_playbackTarget.copyRef()); > + if (oldHasActiveRoute != newHasActiveRoute) > + isPlayingToWirelessPlaybackTargetChanged(newHasActiveRoute); as discussed on irc, this isn't correct or necessary for iOS. > Source/WebCore/platform/audio/PlatformMediaSessionManager.h:61 > + bool isApplicationInBackground() const { return m_isApplicationInBackground; } Nit: this isn't used. Created attachment 260453 [details]
Patch for landing
Comment on attachment 260453 [details] Patch for landing Clearing flags on attachment: 260453 Committed r189322: <http://trac.webkit.org/changeset/189322> |