Changeset 277322 in webkit
- Timestamp:
- May 11, 2021, 6:42:18 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
PAL/ChangeLog (modified) (1 diff)
-
PAL/pal/spi/cocoa/AVFoundationSPI.h (modified) (2 diffs)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r277321 r277322 1 2021-05-11 Jean-Yves Avenard <jya@apple.com> 2 3 Adopt CoreMedia SPI to identify audio-only playback for MSE clients 4 https://bugs.webkit.org/show_bug.cgi?id=225647 5 rdar://76138365 6 7 Reviewed by Youenn Fablet. 8 9 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 10 tells whether the AVSBAR is attached to an <audio> or <video> element. 11 1 12 2021-05-11 Cathie Chen <cathiechen@igalia.com> 2 13 -
trunk/Source/WebCore/PAL/ChangeLog
r277316 r277322 1 2021-05-11 Jean-Yves Avenard <jya@apple.com> 2 3 Adopt CoreMedia SPI to identify audio-only playback for MSE clients 4 https://bugs.webkit.org/show_bug.cgi?id=225647 5 rdar://76138365 6 7 Reviewed by Youenn Fablet. 8 9 * pal/spi/cocoa/AVFoundationSPI.h: Add forward declaration for new methods 10 while this isn't in SDK yet. 11 1 12 2021-05-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 13 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h
r273730 r277322 339 339 #if __has_include(<AVFoundation/AVSampleBufferAudioRenderer.h>) 340 340 #import <AVFoundation/AVSampleBufferAudioRenderer.h> 341 NS_ASSUME_NONNULL_BEGIN 342 @interface AVSampleBufferAudioRenderer (AVSampleBufferAudioRendererWebKitOnly) 343 - (void)setIsUnaccompaniedByVisuals:(BOOL)audioOnly SPI_AVAILABLE(macos(12.0)) API_UNAVAILABLE(ios, tvos, watchos); 344 @end 345 NS_ASSUME_NONNULL_END 341 346 #else 342 347 … … 353 358 - (void)setVolume:(float)volume; 354 359 - (void)setMuted:(BOOL)muted; 360 - (void)setIsUnaccompaniedByVisuals:(BOOL)audioOnly; 355 361 @property (nonatomic, copy) NSString *audioTimePitchAlgorithm; 356 362 @end -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r277272 r277322 1170 1170 [audioRenderer setVolume:m_player->volume()]; 1171 1171 [audioRenderer setAudioTimePitchAlgorithm:(m_player->preservesPitch() ? AVAudioTimePitchAlgorithmSpectral : AVAudioTimePitchAlgorithmVarispeed)]; 1172 ALLOW_NEW_API_WITHOUT_GUARDS_BEGIN 1173 if ([audioRenderer respondsToSelector:@selector(setIsUnaccompaniedByVisuals:)]) 1174 [audioRenderer setIsUnaccompaniedByVisuals:!m_player->isVideoPlayer()]; 1175 ALLOW_NEW_API_WITHOUT_GUARDS_END 1172 1176 1173 1177 #if HAVE(AUDIO_OUTPUT_DEVICE_UNIQUE_ID)
Note:
See TracChangeset
for help on using the changeset viewer.