Bug 1299515 - Plumb MediaStreamTrack enabled state to sources. r=jib

MozReview-Commit-ID: Eg1g9JtLmOz
This commit is contained in:
Andreas Pehrson
2017-11-10 15:55:42 +01:00
parent 76e91cf519
commit c38486c12d
8 changed files with 236 additions and 1 deletions

View File

@@ -3248,6 +3248,22 @@ public:
return false;
}
/**
* Do not keep the track source on. It is controlled by its associated tracks.
*/
bool Enabled() const override
{
return false;
}
void Disable() override
{
}
void Enable() override
{
}
void PrincipalChanged() override
{
if (!mCapturedTrackSource) {
@@ -3341,6 +3357,14 @@ public:
// based on MediaStreams during capture.
}
void Disable() override
{
}
void Enable() override
{
}
void NotifyDecoderPrincipalChanged() override
{
nsCOMPtr<nsIPrincipal> newPrincipal = mElement->GetCurrentPrincipal();