Bug 882718 - Implement ActiveFlag at TextTrackCue object. r=rillian

MozReview-Commit-ID: 4FksCKzB0Ep
This commit is contained in:
bechen
2016-06-01 13:35:53 +08:00
parent 487f86522a
commit a7f31253c1
9 changed files with 52 additions and 0 deletions

View File

@@ -776,6 +776,11 @@ void HTMLMediaElement::AbortExistingLoads()
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_EMPTY);
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_NOTHING);
//TODO: Apply the rules for text track cue rendering Bug 865407
if (mTextTrackManager) {
mTextTrackManager->GetTextTracks()->SetCuesInactive();
}
if (fireTimeUpdate) {
// Since we destroyed the decoder above, the current playback position
// will now be reported as 0. The playback position was non-zero when