Bug 1577505 - Make mSrcStreamPlaybackEnded and mReadyState watchable. r=jib

This makes all inputs to IsPotentiallyPlayin() Watchable when we're playing a
MediaStream.

Differential Revision: https://phabricator.services.mozilla.com/D49353
This commit is contained in:
Andreas Pehrson
2019-11-04 13:42:58 +00:00
parent 059bb3b035
commit 5db438e9a6
2 changed files with 5 additions and 3 deletions

View File

@@ -3780,7 +3780,7 @@ void HTMLMediaElement::UpdateHadAudibleAutoplayState() {
already_AddRefed<Promise> HTMLMediaElement::Play(ErrorResult& aRv) {
LOG(LogLevel::Debug,
("%p Play() called by JS readyState=%d", this, mReadyState));
("%p Play() called by JS readyState=%d", this, mReadyState.Ref()));
// 4.8.12.8
// When the play() method on a media element is invoked, the user agent must