Changeset 267671 in webkit
- Timestamp:
- Sep 27, 2020, 1:00:05 PM (6 years ago)
- Location:
- branches/safari-610-branch/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
PAL/pal/spi/cocoa/AVFoundationSPI.h (modified) (1 diff)
-
platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-610-branch/Source/WebCore/ChangeLog
r267642 r267671 1 2020-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 1 36 2020-09-25 Alan Coon <alancoon@apple.com> 2 37 -
branches/safari-610-branch/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h
r267046 r267671 105 105 @interface AVOutputDevice : NSObject 106 106 @property (nonatomic, readonly) NSString *name; 107 @property (nonatomic, readonly) NSString *deviceName; 107 108 @property (nonatomic, readonly) AVOutputDeviceFeatures deviceFeatures; 108 109 @end -
branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm
r259303 r267671 110 110 String MediaPlaybackTargetCocoa::deviceName() const 111 111 { 112 if ( m_outputContext)113 return m_outputContext.get().deviceName;112 if (!m_outputContext) 113 return emptyString(); 114 114 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:@" + "]; 116 123 } 117 124
Note:
See TracChangeset
for help on using the changeset viewer.