Bug 1309162 - part7 : wrap custom policy function. r=jwwang
MozReview-Commit-ID: EdjzMi90ukx
This commit is contained in:
@@ -3573,10 +3573,7 @@ HTMLMediaElement::Play(ErrorResult& aRv)
|
||||
aRv.Throw(rv);
|
||||
}
|
||||
|
||||
OpenUnsupportedMediaWithExternalAppIfNeeded();
|
||||
if (mAudioChannelWrapper) {
|
||||
mAudioChannelWrapper->NotifyPlayStarted();
|
||||
}
|
||||
UpdateCustomPolicyAfterPlayed();
|
||||
}
|
||||
|
||||
nsresult
|
||||
@@ -3665,10 +3662,7 @@ NS_IMETHODIMP HTMLMediaElement::Play()
|
||||
return rv;
|
||||
}
|
||||
|
||||
OpenUnsupportedMediaWithExternalAppIfNeeded();
|
||||
if (mAudioChannelWrapper) {
|
||||
mAudioChannelWrapper->NotifyPlayStarted();
|
||||
}
|
||||
UpdateCustomPolicyAfterPlayed();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@@ -6863,5 +6857,14 @@ HTMLMediaElement::MarkAsContentSource(CallerAPI aAPI)
|
||||
this, isVisible, aAPI));
|
||||
}
|
||||
|
||||
void
|
||||
HTMLMediaElement::UpdateCustomPolicyAfterPlayed()
|
||||
{
|
||||
OpenUnsupportedMediaWithExternalAppIfNeeded();
|
||||
if (mAudioChannelWrapper) {
|
||||
mAudioChannelWrapper->NotifyPlayStarted();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
Reference in New Issue
Block a user