Bug 1059295 - sending the getUserMedia:revoke notification with the "screen:" prefix doesn't stop app sharing r=jesup
This commit is contained in:
@@ -2320,6 +2320,7 @@ GetUserMediaCallbackMediaStreamListener::StopScreenWindowSharing()
|
|||||||
NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
|
NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
|
||||||
if (mVideoSource && !mStopped &&
|
if (mVideoSource && !mStopped &&
|
||||||
(mVideoSource->GetMediaSource() == MediaSourceType::Screen ||
|
(mVideoSource->GetMediaSource() == MediaSourceType::Screen ||
|
||||||
|
mVideoSource->GetMediaSource() == MediaSourceType::Application ||
|
||||||
mVideoSource->GetMediaSource() == MediaSourceType::Window)) {
|
mVideoSource->GetMediaSource() == MediaSourceType::Window)) {
|
||||||
// Stop the whole stream if there's no audio; just the video track if we have both
|
// Stop the whole stream if there's no audio; just the video track if we have both
|
||||||
nsRefPtr<MediaOperationRunnable> runnable(
|
nsRefPtr<MediaOperationRunnable> runnable(
|
||||||
|
|||||||
Reference in New Issue
Block a user