In PWA, HTML Video Element may be unable to play stream from 'getUserMedia()'#15370
Merged
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 77febf2) Details
|
jernoble
reviewed
Jun 28, 2023
jernoble
reviewed
Jun 28, 2023
77febf2 to
2628bfa
Compare
Collaborator
|
EWS run on previous version of this PR (hash 2628bfa) Details
|
jernoble
requested changes
Jun 28, 2023
2628bfa to
30c22a9
Compare
Collaborator
|
EWS run on current version of this PR (hash 30c22a9) Details
|
…Media()' https://bugs.webkit.org/show_bug.cgi?id=252465 rdar://111500785 Reviewed by Eric Carlson. In case the same GPU process is used by several SafariViewServices, mediaserverd may think that a capturing session is in the background while it is in foreground. Ideally mediaserverd would compute this from an audit token or something similar we would pass them. Currently, it is based on pid forwarding. As a temporary workaround, we are now storing which pid is to be used for a given WebProcess in RemoteMediaSessionHelperProxy. When starting to produce data for camera, we are then ensuring that this pid is correctly set whenever starting to produce data. We allow overriding of pid in MediaSessionHelperiOS, by adding a new ShouldOverride boolean. Only AVVideoCaptureSource is using ShouldOverride::Yes, which should limit potential fallouts to camera capture cases. * Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.h: * Source/WebCore/platform/audio/ios/MediaSessionHelperIOS.mm: (MediaSessionHelperiOS::providePresentingApplicationPID): * Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp: (WebKit::GPUConnectionToWebProcess::overridePresentingApplicationPIDIfNeeded): * Source/WebKit/GPUProcess/GPUConnectionToWebProcess.h: * Source/WebKit/GPUProcess/media/ios/RemoteMediaSessionHelperProxy.cpp: (WebKit::RemoteMediaSessionHelperProxy::providePresentingApplicationPID): (WebKit::RemoteMediaSessionHelperProxy::overridePresentingApplicationPIDIfNeeded): * Source/WebKit/GPUProcess/media/ios/RemoteMediaSessionHelperProxy.h: * Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.cpp: (WebKit::UserMediaCaptureManagerProxy::startProducingData): * Source/WebKit/UIProcess/Cocoa/UserMediaCaptureManagerProxy.h: (WebKit::UserMediaCaptureManagerProxy::ConnectionProxy::startProducingData): * Source/WebKit/WebProcess/GPU/media/ios/RemoteMediaSessionHelper.cpp: (WebKit::RemoteMediaSessionHelper::providePresentingApplicationPID): * Source/WebKit/WebProcess/GPU/media/ios/RemoteMediaSessionHelper.h: Canonical link: https://commits.webkit.org/265986@main
30c22a9 to
bbf6021
Compare
Collaborator
|
Committed 265986@main (bbf6021): https://commits.webkit.org/265986@main Reviewed commits have been landed. Closing PR #15370 and removing active labels. |
jernoble
reviewed
Jul 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bbf6021
30c22a9