Bug 1303554 - part1 : notify start-playing after having enough data. r=baku

Regression by bug1262053 because of removing the current playing checking.
It would cause that the media control on Fennec shows too early and some media
elements would also generate the media control even it doens't have available
source.

Therefore, I think we still need to add this checking back.

MozReview-Commit-ID: 1m1ywmLmpSe

--HG--
extra : rebase_source : 30741b0e7bf1bb15349caaf1ecbcdad8cd92dcc3
This commit is contained in:
Alastor Wu 2016-10-05 10:07:49 +08:00
parent 22ccc8580a
commit 94f2fcca3d

View File

@ -5755,6 +5755,11 @@ HTMLMediaElement::IsPlayingThroughTheAudioChannel() const
return true;
}
// If we are actually playing...
if (IsCurrentlyPlaying()) {
return true;
}
// If we are seeking, we consider it as playing
if (mPlayingThroughTheAudioChannelBeforeSeek) {
return true;
@ -5765,7 +5770,7 @@ HTMLMediaElement::IsPlayingThroughTheAudioChannel() const
return true;
}
return true;
return false;
}
void