зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1059295 - sending the getUserMedia:revoke notification with the "screen:" prefix doesn't stop app sharing r=jesup
This commit is contained in:
Родитель
780497e3ca
Коммит
f29839ae1a
|
@ -2320,6 +2320,7 @@ GetUserMediaCallbackMediaStreamListener::StopScreenWindowSharing()
|
|||
NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
|
||||
if (mVideoSource && !mStopped &&
|
||||
(mVideoSource->GetMediaSource() == MediaSourceType::Screen ||
|
||||
mVideoSource->GetMediaSource() == MediaSourceType::Application ||
|
||||
mVideoSource->GetMediaSource() == MediaSourceType::Window)) {
|
||||
// Stop the whole stream if there's no audio; just the video track if we have both
|
||||
nsRefPtr<MediaOperationRunnable> runnable(
|
||||
|
|
Загрузка…
Ссылка в новой задаче