mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
4bdd3bb65a
Previously, in the updateCaptions_ method in the UI text displayer, when trying to determine if a cue should be removed from the container, we checked to see if it was out of the time range. This worked in most cases, but it did have the side-effect that the displayer would not remove the old cues if they were removed manually via the remove() method. This was most visible if the user changed the text language; the currently-displayed cue of the old language would linger until it reached the point it would stop displaying normally. This changes the UI text displayer to force an update when remove() is called, if necessary. Change-Id: I84a4847b67c5fb7597342a943abe13a3cc9e826e