Changeset 267676 in webkit
- Timestamp:
- Sep 27, 2020, 1:00:23 PM (6 years ago)
- Location:
- branches/safari-610-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/audio/ios/MediaSessionManagerIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-610-branch/Source/WebCore/ChangeLog
r267675 r267676 1 2020-09-27 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r267198. rdar://problem/69594065 4 5 [iOS] YouTube does not route video to AirPlay the first time 6 https://bugs.webkit.org/show_bug.cgi?id=216626 7 <rdar://problem/62222846> 8 9 Reviewed by Eric Carlson. 10 11 Difficult to test this, since it requires an live AppleTV device. 12 13 During a refactor, the order of a couple calls changed. A MediaPlaybackTarget needs to be in place before the MediaPlayer can 14 be told to start playing to that target. Once the target is in-place, subsequent requests to start playing to that target succeed, 15 which explains the "only initial AirPlay fails" behavior. 16 17 * platform/audio/ios/MediaSessionManagerIOS.mm: 18 (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange): 19 20 21 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267198 268f45cc-cd09-0410-ab3c-d52691b4dbfc 22 23 2020-09-17 Jer Noble <jer.noble@apple.com> 24 25 [iOS] YouTube does not route video to AirPlay the first time 26 https://bugs.webkit.org/show_bug.cgi?id=216626 27 <rdar://problem/62222846> 28 29 Reviewed by Eric Carlson. 30 31 Difficult to test this, since it requires an live AppleTV device. 32 33 During a refactor, the order of a couple calls changed. A MediaPlaybackTarget needs to be in place before the MediaPlayer can 34 be told to start playing to that target. Once the target is in-place, subsequent requests to start playing to that target succeed, 35 which explains the "only initial AirPlay fails" behavior. 36 37 * platform/audio/ios/MediaSessionManagerIOS.mm: 38 (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange): 39 1 40 2020-09-27 Alan Coon <alancoon@apple.com> 2 41 -
branches/safari-610-branch/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm
r265834 r267676 206 206 return; 207 207 208 nowPlayingSession->setPlaybackTarget(WTFMove(playbackTarget)); 208 209 nowPlayingSession->setShouldPlayToPlaybackTarget(supportsAirPlayVideo == SupportsAirPlayVideo::Yes); 209 nowPlayingSession->setPlaybackTarget(WTFMove(playbackTarget));210 210 } 211 211
Note:
See TracChangeset
for help on using the changeset viewer.