mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-19 05:20:10 +00:00
Bug 1331763 - part1: Support EME content for AudioContext::CreateMediaElementSource; r=cpearce
MozReview-Commit-ID: 1OMySAPCH4i --HG-- extra : rebase_source : abd014ffc19976abbfdb523b6a172e42a3a80521
This commit is contained in:
parent
0f30c92978
commit
da52aad1f7
@ -3361,7 +3361,7 @@ HTMLMediaElement::CaptureStreamInternal(bool aFinishWhenEnded,
|
||||
if (!window) {
|
||||
return nullptr;
|
||||
}
|
||||
if (ContainsRestrictedContent()) {
|
||||
if (!aCaptureAudio && ContainsRestrictedContent()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@ -25,11 +25,6 @@ MediaElementAudioSourceNode::Create(AudioContext& aAudioContext,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (aOptions.mMediaElement->ContainsRestrictedContent()) {
|
||||
aRv.Throw(NS_ERROR_DOM_NOT_SUPPORTED_ERR);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (aAudioContext.CheckClosed(aRv)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user