Changeset 272829 in webkit
- Timestamp:
- Feb 12, 2021 8:36:29 PM (17 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac/media/unmute-after-loading-expected.txt (added)
-
LayoutTests/platform/mac/media/unmute-after-loading.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (modified) (1 diff)
-
Source/WebCore/testing/Internals.cpp (modified) (1 diff)
-
Source/WebCore/testing/Internals.h (modified) (1 diff)
-
Source/WebCore/testing/Internals.idl (modified) (1 diff)
-
Source/WebCore/testing/Internals.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r272827 r272829 1 2021-02-12 Jer Noble <jer.noble@apple.com> 2 3 [Mac] Sound does not play on YouTube after switching back to foreground 4 https://bugs.webkit.org/show_bug.cgi?id=221858 5 <rdar://70602677> 6 7 Reviewed by Eric Carlson. 8 9 * platform/mac/media/unmute-after-loading-expected.txt: Added. 10 * platform/mac/media/unmute-after-loading.html: Added. 11 1 12 2021-02-12 Chris Gambrell <cgambrell@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r272828 r272829 1 2021-02-12 Jer Noble <jer.noble@apple.com> 2 3 [Mac] Sound does not play on YouTube after switching back to foreground 4 https://bugs.webkit.org/show_bug.cgi?id=221858 5 <rdar://70602677> 6 7 Reviewed by Eric Carlson. 8 9 Test: platform/mac/media/unmute-after-loading.html 10 11 Remove a stray, unnecessary reset of a cached muted state which kept mute 12 state from being changed the first time after loading. 13 14 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 15 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer): 16 * testing/Internals.cpp: 17 (WebCore::Internals::privatePlayerMuted): 18 * testing/Internals.h: 19 * testing/Internals.idl: 20 * testing/Internals.mm: 21 (WebCore::Internals::privatePlayerMuted): 22 1 23 2021-02-12 Chris Dumez <cdumez@apple.com> 2 24 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r272224 r272829 1008 1008 1009 1009 if (m_muted) { 1010 // Clear m_muted so setMuted doesn't return without doing anything.1011 m_muted = false;1012 1010 [m_avPlayer.get() setMuted:m_muted]; 1013 1011 -
trunk/Source/WebCore/testing/Internals.cpp
r272748 r272829 4890 4890 return 0; 4891 4891 } 4892 4893 bool Internals::privatePlayerMuted(const HTMLMediaElement&) 4894 { 4895 return false; 4896 } 4892 4897 #endif 4893 4898 -
trunk/Source/WebCore/testing/Internals.h
r272206 r272829 632 632 String elementBufferingPolicy(HTMLMediaElement&); 633 633 double privatePlayerVolume(const HTMLMediaElement&); 634 bool privatePlayerMuted(const HTMLMediaElement&); 634 635 ExceptionOr<void> setOverridePreferredDynamicRangeMode(HTMLMediaElement&, const String&); 635 636 #endif -
trunk/Source/WebCore/testing/Internals.idl
r272206 r272829 653 653 [Conditional=VIDEO] DOMString elementBufferingPolicy(HTMLMediaElement media); 654 654 [Conditional=VIDEO] double privatePlayerVolume(HTMLMediaElement media); 655 [Conditional=VIDEO] boolean privatePlayerMuted(HTMLMediaElement media); 655 656 [Conditional=VIDEO, MayThrowException] undefined setOverridePreferredDynamicRangeMode(HTMLMediaElement media, DOMString mode); 656 657 -
trunk/Source/WebCore/testing/Internals.mm
r272760 r272829 104 104 return [player volume]; 105 105 } 106 107 bool Internals::privatePlayerMuted(const HTMLMediaElement& element) 108 { 109 auto corePlayer = element.player(); 110 if (!corePlayer) 111 return false; 112 auto player = corePlayer->objCAVFoundationAVPlayer(); 113 if (!player) 114 return false; 115 return [player isMuted]; 116 } 106 117 #endif 107 118
Note: See TracChangeset
for help on using the changeset viewer.