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

Changeset 267198 in webkit


Ignore:
Timestamp:
Sep 17, 2020, 10:47:28 AM (6 years ago)
Author:
jer.noble@apple.com
Message:

[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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267191 r267198  
     12020-09-17  Jer Noble  <jer.noble@apple.com>
     2
     3        [iOS] YouTube does not route video to AirPlay the first time
     4        https://bugs.webkit.org/show_bug.cgi?id=216626
     5        <rdar://problem/62222846>
     6
     7        Reviewed by Eric Carlson.
     8
     9        Difficult to test this, since it requires an live AppleTV device.
     10
     11        During a refactor, the order of a couple calls changed. A MediaPlaybackTarget needs to be in place before the MediaPlayer can
     12        be told to start playing to that target. Once the target is in-place, subsequent requests to start playing to that target succeed,
     13        which explains the "only initial AirPlay fails" behavior.
     14
     15        * platform/audio/ios/MediaSessionManagerIOS.mm:
     16        (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange):
     17
    1182020-09-17  Antti Koivisto  <antti@apple.com>
    219
  • trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm

    r265834 r267198  
    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.