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

Changeset 267671 in webkit


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

Cherry-pick r266312. rdar://problem/69594218

[macOS] AirPlay device name is wrong when playing to multiple devices
https://bugs.webkit.org/show_bug.cgi?id=215952
<rdar://problem/66930799>

Reviewed by Jer Noble.

Tested manually because this requires a specific hardware setup.

  • platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm: (WebCore::MediaPlaybackTargetCocoa::deviceName const): If the AVOutputContext supports multiple output devices, create the device name by concatenating the names of all of the active output devices.

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

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

Legend:

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

    r267642 r267671  
     12020-09-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r266312. rdar://problem/69594218
     4
     5    [macOS] AirPlay device name is wrong when playing to multiple devices
     6    https://bugs.webkit.org/show_bug.cgi?id=215952
     7    <rdar://problem/66930799>
     8   
     9    Reviewed by Jer Noble.
     10   
     11    Tested manually because this requires a specific hardware setup.
     12   
     13    * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm:
     14    (WebCore::MediaPlaybackTargetCocoa::deviceName const): If the AVOutputContext
     15    supports multiple output devices, create the device name by concatenating the names
     16    of all of the active output devices.
     17   
     18   
     19    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     20
     21    2020-08-28  Eric Carlson  <eric.carlson@apple.com>
     22
     23            [macOS] AirPlay device name is wrong when playing to multiple devices
     24            https://bugs.webkit.org/show_bug.cgi?id=215952
     25            <rdar://problem/66930799>
     26
     27            Reviewed by Jer Noble.
     28
     29            Tested manually because this requires a specific hardware setup.
     30
     31            * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm:
     32            (WebCore::MediaPlaybackTargetCocoa::deviceName const): If the AVOutputContext
     33            supports multiple output devices, create the device name by concatenating the names
     34            of all of the active output devices.
     35
    1362020-09-25  Alan Coon  <alancoon@apple.com>
    237
  • branches/safari-610-branch/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h

    r267046 r267671  
    105105@interface AVOutputDevice : NSObject
    106106@property (nonatomic, readonly) NSString *name;
     107@property (nonatomic, readonly) NSString *deviceName;
    107108@property (nonatomic, readonly) AVOutputDeviceFeatures deviceFeatures;
    108109@end
  • branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm

    r259303 r267671  
    110110String MediaPlaybackTargetCocoa::deviceName() const
    111111{
    112     if (m_outputContext)
    113         return m_outputContext.get().deviceName;
     112    if (!m_outputContext)
     113        return emptyString();
    114114
    115     return emptyString();
     115    if (![m_outputContext supportsMultipleOutputDevices])
     116        return [m_outputContext deviceName];
     117
     118    auto outputDeviceNames = adoptNS([[NSMutableArray alloc] init]);
     119    for (AVOutputDevice *outputDevice in [m_outputContext outputDevices])
     120        [outputDeviceNames addObject:[outputDevice deviceName]];
     121
     122    return [outputDeviceNames componentsJoinedByString:@" + "];
    116123}
    117124
Note: See TracChangeset for help on using the changeset viewer.