-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 5a6b1df. rdar://122187886
[macOS] Screen or Window sharing in Safari stops working once paused, resume option does not work - WebRTC getDisplayMedia https://bugs.webkit.org/show_bug.cgi?id=269566 rdar://122187886 Reviewed by Eric Carlson. When muting the source, we stop it. At that point, we were forgetting which content filter we were using, which is necessary to restart the stream. We are now storing it in ScreenCaptureKitCaptureSource by querying ScreenCaptureKitSharingSessionManager. When unmuting, we already have it and we can construct successfully a new session source. * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.h: * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm: (WebCore::ScreenCaptureKitCaptureSource::startContentStream): * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitSharingSessionManager.h: * Source/WebCore/platform/mediastream/mac/ScreenCaptureKitSharingSessionManager.mm: (WebCore::ScreenCaptureKitSharingSessionManager::cancelPendingSessionForDevice): (WebCore::ScreenCaptureKitSharingSessionManager::contentFilterFromCaptureDevice): (WebCore::ScreenCaptureKitSharingSessionManager::createSessionSourceForDevice): Canonical link: https://commits.webkit.org/274943@main Identifier: 272448.618@safari-7618-branch
- Loading branch information
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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