Bug 172858 - [MediaStream iOS] Cleanup video muting/unmuting when tab visibility changes
Summary: [MediaStream iOS] Cleanup video muting/unmuting when tab visibility changes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-02 08:09 PDT by Eric Carlson
Modified: 2022-10-05 16:24 PDT (History)
4 users (show)

See Also:


Attachments
Proposed patch. (12.03 KB, patch)
2017-06-02 08:22 PDT, Eric Carlson
eric.carlson: review+
Details | Formatted Diff | Diff
Patch for landing. (4.86 KB, patch)
2017-06-02 10:50 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff
Patch for landing. (12.05 KB, patch)
2017-06-02 13:38 PDT, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2017-06-02 08:09:47 PDT
Don't unmute a video when a tab becomes visible unless it was muted when the tab was hidden.
Comment 1 Eric Carlson 2017-06-02 08:22:02 PDT
Created attachment 311827 [details]
Proposed patch.
Comment 2 Eric Carlson 2017-06-02 10:20:13 PDT
Comment on attachment 311827 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=311827&action=review

> Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:337
> +void RealtimeMediaSourceCenter::setVideoCaptureMutedForPageVisibility(bool muted)

shouldMute instead of muted?

> LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html:67
> +

Double space line
Comment 3 Eric Carlson 2017-06-02 10:44:59 PDT
(In reply to Eric Carlson from comment #2)
> Comment on attachment 311827 [details]
> Proposed patch.
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=311827&action=review
> 
> > Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:337
> > +void RealtimeMediaSourceCenter::setVideoCaptureMutedForPageVisibility(bool muted)
> 
> shouldMute instead of muted?
> 
> > LayoutTests/platform/ios/mediastream/video-muted-in-background-tab.html:67
> > +
> 
> Double space line

(Comments by Youenn on my machine)
Comment 4 Eric Carlson 2017-06-02 10:50:44 PDT
Created attachment 311839 [details]
Patch for landing.
Comment 5 WebKit Commit Bot 2017-06-02 11:21:06 PDT
Comment on attachment 311839 [details]
Patch for landing.

Rejecting attachment 311839 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
bjects-normal/x86_64/FEComposite.dia -c /Volumes/Data/EWS/WebKit/Source/WebCore/platform/graphics/filters/FEComposite.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/FEComposite.o

** BUILD FAILED **


The following build commands failed:
	CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/Document.o dom/Document.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Full output: http://webkit-queues.webkit.org/results/3860671
Comment 6 Eric Carlson 2017-06-02 13:38:51 PDT
Created attachment 311855 [details]
Patch for landing.
Comment 7 WebKit Commit Bot 2017-06-02 14:16:57 PDT
Comment on attachment 311855 [details]
Patch for landing.

Clearing flags on attachment: 311855

Committed r217734: <http://trac.webkit.org/changeset/217734>
Comment 8 Ahmad Saleem 2022-10-05 16:23:32 PDT
Seems landed and didn't back out.

https://github.com/WebKit/WebKit/commit/b47636fb155e81e898fc91fb11959757194bf78d

Marking this as "RESOLVED FIXED". Thanks!
Comment 9 Radar WebKit Bug Importer 2022-10-05 16:24:18 PDT
<rdar://problem/100828817>