WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 221747
Make RemoteRealtimeVideoSource a RealtimeVideoCaptureSource
https://bugs.webkit.org/show_bug.cgi?id=221747
Summary
Make RemoteRealtimeVideoSource a RealtimeVideoCaptureSource
youenn fablet
Reported
2021-02-11 03:08:06 PST
Make RemoteRealtimeVideoSource a RealtimeVideoCaptureSource
Attachments
WIP
(28.47 KB, patch)
2021-02-11 03:11 PST
,
youenn fablet
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(30.58 KB, patch)
2021-02-11 05:02 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(30.63 KB, patch)
2021-02-11 05:18 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(37.27 KB, patch)
2021-02-12 01:28 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(37.26 KB, patch)
2021-02-12 02:10 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-02-11 03:11:49 PST
Created
attachment 419969
[details]
WIP
youenn fablet
Comment 2
2021-02-11 05:02:57 PST
Created
attachment 419976
[details]
Patch
youenn fablet
Comment 3
2021-02-11 05:18:27 PST
Created
attachment 419978
[details]
Patch
Eric Carlson
Comment 4
2021-02-11 09:04:42 PST
Comment on
attachment 419978
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=419978&action=review
> Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:312 > +void UserMediaCaptureManagerProxy::generatePresets(RealtimeMediaSourceIdentifier id, CompletionHandler<void(Vector<VideoPresetData>&&, IntSize)>&& completionHandler)
This name isn't entirely accurate because it generates presets and fetches the current size. I don't love either of these names, but they would be more correct: `getSizeAndGeneratePresets`, or `generatePresetsAndGetSize`?
> Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp:83 > + connection()->sendWithAsyncReply(Messages::UserMediaCaptureManagerProxy::GeneratePresets(identifier()), [this, protectedThis = WTFMove(protectedThis)](auto&& presets, auto size) {
As we discussed, can this be moved into CreateMediaSourceForCaptureDeviceWithConstraints so we don't need to make two calls to the UI process to become ready?
> Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp:248 > +void RemoteRealtimeVideoSource::setFrameRateWithPreset(double, RefPtr<VideoPreset>) > { > - m_hasRequestedToEnd = true; > - connection()->send(Messages::UserMediaCaptureManagerProxy::RequestToEnd { m_identifier }, 0); > }
Can this be removed completely?
youenn fablet
Comment 5
2021-02-11 09:17:25 PST
(In reply to Eric Carlson from
comment #4
)
> Comment on
attachment 419978
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=419978&action=review
> > > Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp:312 > > +void UserMediaCaptureManagerProxy::generatePresets(RealtimeMediaSourceIdentifier id, CompletionHandler<void(Vector<VideoPresetData>&&, IntSize)>&& completionHandler) > > This name isn't entirely accurate because it generates presets and fetches > the current size. I don't love either of these names, but they would be more > correct: `getSizeAndGeneratePresets`, or `generatePresetsAndGetSize`? > > > Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp:83 > > + connection()->sendWithAsyncReply(Messages::UserMediaCaptureManagerProxy::GeneratePresets(identifier()), [this, protectedThis = WTFMove(protectedThis)](auto&& presets, auto size) { > > As we discussed, can this be moved into > CreateMediaSourceForCaptureDeviceWithConstraints so we don't need to make > two calls to the UI process to become ready?
Right, let's add it to CreateMediaSourceForCaptureDeviceWithConstraints.
youenn fablet
Comment 6
2021-02-12 01:28:06 PST
Created
attachment 420103
[details]
Patch for landing
youenn fablet
Comment 7
2021-02-12 01:29:42 PST
> > Source/WebKit/WebProcess/cocoa/RemoteRealtimeVideoSource.cpp:248 > > +void RemoteRealtimeVideoSource::setFrameRateWithPreset(double, RefPtr<VideoPreset>) > > { > > - m_hasRequestedToEnd = true; > > - connection()->send(Messages::UserMediaCaptureManagerProxy::RequestToEnd { m_identifier }, 0); > > } > > Can this be removed completely?
Actually, I need to implement it for clone-then-increase-resolution-or-frameRate cases. I removed on the other hand the applyConstraintsFailed/Succeeded since they are no longer needed for video.
EWS
Comment 8
2021-02-12 02:06:48 PST
ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.
youenn fablet
Comment 9
2021-02-12 02:10:12 PST
Created
attachment 420107
[details]
Patch
EWS
Comment 10
2021-02-12 02:54:38 PST
Committed
r272778
: <
https://commits.webkit.org/r272778
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420107
[details]
.
Radar WebKit Bug Importer
Comment 11
2021-02-12 02:55:14 PST
<
rdar://problem/74270196
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug