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

[Reopen] Playback does not end with truncated Akamai streams when subtitles are displayed #70

Open
pyby opened this issue Aug 15, 2019 · 1 comment

Comments

@pyby
Copy link
Member

pyby commented Aug 15, 2019

When playing a truncated Akamai stream with subtitles enabled (truncation via start and end parameters), the subtitles track is correctly aligned at the beginning, but its length is bigger than the stream duration. As a result, the player never reaches the end state.

This issue is similar to #65 .

Issue type

Incorrect behavior

Description of the problem

Subtitles track for truncated streams is an Akamai beta feature. We should report the bug and implement a workaround in the meantime.

Environment information

  • Library version: Any
  • iOS version: Any
  • Device: Any

Reproducibility

Always reproducible

Steps to reproduce

  1. Play an Akamai stream having subtitles, truncated with start and end parameters, for example SRF 10v10 subject of 6 minutes.
  2. Enable subtitles.
  3. Wait until playback reaches the end. The player never ends playback.
@pyby pyby added the minor bug label Aug 15, 2019
@pyby
Copy link
Member Author

pyby commented Aug 15, 2019

The current strategy is to test in the periodic time observer (every 0.1 seconds) if the current time is greater or equal than the duration range.

Unfortunately, the last observed playback time could be near the end of the duration range, but just before. The player goes in a stalled mode.

feature/player-ended proposition is to test when the stalled state is beginning, if the time is at last one second from the end of the duration end or after, set the player to the end state.

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

No branches or pull requests

1 participant