⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267676 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 1:00:23 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r267198. rdar://problem/69594065

[iOS] YouTube does not route video to AirPlay the first time
https://bugs.webkit.org/show_bug.cgi?id=216626
<rdar://problem/62222846>

Reviewed by Eric Carlson.

Difficult to test this, since it requires an live AppleTV device.

During a refactor, the order of a couple calls changed. A MediaPlaybackTarget needs to be in place before the MediaPlayer can
be told to start playing to that target. Once the target is in-place, subsequent requests to start playing to that target succeed,
which explains the "only initial AirPlay fails" behavior.

  • platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267198 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebCore/ChangeLog

    r267675 r267676  
     12020-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
    1402020-09-27  Alan Coon  <alancoon@apple.com>
    241
  • branches/safari-610-branch/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm

    r265834 r267676  
    206206        return;
    207207
     208    nowPlayingSession->setPlaybackTarget(WTFMove(playbackTarget));
    208209    nowPlayingSession->setShouldPlayToPlaybackTarget(supportsAirPlayVideo == SupportsAirPlayVideo::Yes);
    209     nowPlayingSession->setPlaybackTarget(WTFMove(playbackTarget));
    210210}
    211211
Note: See TracChangeset for help on using the changeset viewer.