Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitles disappear when seeking backward on certain streams. #4503

Open
5 tasks done
HugoSaintLaurent opened this issue Jun 13, 2024 · 1 comment
Open
5 tasks done
Labels

Comments

@HugoSaintLaurent
Copy link

HugoSaintLaurent commented Jun 13, 2024

Environment
Steps to reproduce

It can be reproduce in dash reference player as follow:

  1. Uncheck the loop check box in the options.
  2. Select Stream -> Subtitles and Caption -> [DASH-IF]TTML Segmented Subtitles VoD
  3. Press Load
  4. Let the stream play for a 1 or 2 minutes.
  5. Then seek back at the beginning of the stream.
    You will notice that captions previously displayed at the beginning of the stream are now missing and no longer displayed anymore because they have been removed from the text track cue list. And there corresponding vtt boxes/text fragments ( https://livesim2.dashif.org/vod/testpic_2s/sub_eng/24.m4s for example) haven't been reloaded.

Captions will reappear when you reach a point where they are still present in the cue list of the text track.

Another way to reproduce this issue is to play the stream until them end, and press play again.

Observed behavior

Calling _deleteOutdatedTrackCues() in TextTrack.js's addCaptions() is causing issues when seeking or starting over (Seeking to 0) when text fragments are scattered throughtout the stream. Once outdated cues are deleted, they are not redownloaded when the user seek back to a position in time where deleted text cues were, resulting in the disappearance of the captions for that time.

Expected behavior

Redownload the captions, or only delete outdated captions when they are out of the seekable range.

@HugoSaintLaurent
Copy link
Author

Console Logs:
Subtiltes missing log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant