Bug 1299515 - Plumb MediaStreamTrack enabled state to sources. r=jib
MozReview-Commit-ID: Eg1g9JtLmOz
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user