Changeset 268791 in webkit
- Timestamp:
- Oct 21, 2020, 4:32:10 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268789 r268791 1 2020-10-21 Youenn Fablet <youenn@apple.com> 2 3 [iOS] Disable audio capture in the background for non Safari applications 4 https://bugs.webkit.org/show_bug.cgi?id=217948 5 <rdar://problem/70241557> 6 7 Reviewed by Eric Carlson. 8 9 * platform/ios/mediastream/video-muted-in-background-tab.html: 10 By default, audio capture will be muted in WTR if page goes to background. 11 Update the test to explicitly request for audio capture to continue while in background. 12 1 13 2020-10-21 Diego Pino Garcia <dpino@igalia.com> 2 14 -
trunk/LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html
r261373 r268791 43 43 44 44 promise_test(async (t) => { 45 if (window.internals) 45 if (window.internals) { 46 window.internals.setShouldInterruptAudioOnPageVisibilityChange(false); 46 47 window.internals.setPageVisibility(false); 48 } 47 49 assert_false(audioTrack.muted, "audio track is active"); 48 50 assert_true(videoTrack.muted, "video track is muted"); -
trunk/Source/WebCore/ChangeLog
r268790 r268791 1 2020-10-21 Youenn Fablet <youenn@apple.com> 2 3 [iOS] Disable audio capture in the background for non Safari applications 4 https://bugs.webkit.org/show_bug.cgi?id=217948 5 <rdar://problem/70241557> 6 7 Reviewed by Eric Carlson. 8 9 We do not have good OS support when capturing audio in a WebProcess for a backgrounded application. 10 Until we have proper support, it seems best to mute audio capture when being backgrounded. 11 Manually tested. 12 13 * platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm: 14 (WebCore::RealtimeMediaSourceCenter::shouldInterruptAudioOnPageVisibilityChange): 15 1 16 2020-10-21 Philippe Normand <pnormand@igalia.com> 2 17 -
trunk/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.mm
r260366 r268791 29 29 #if ENABLE(MEDIA_STREAM) 30 30 31 #include "RuntimeApplicationChecks.h" 32 31 33 namespace WebCore { 32 34 … … 34 36 { 35 37 #if PLATFORM(IOS) 38 if (!WebCore::IOSApplication::isMobileSafari() && !WebCore::IOSApplication::isSafariViewService()) 39 return true; 40 36 41 NSArray *modes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIBackgroundModes"]; 37 42 if (!modes)
Note:
See TracChangeset
for help on using the changeset viewer.