Publish HLS media structure defined by EXT-DISCONTINUITY tags
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### [REQUIRED] Searched documentation and issues
https://github.com/google/ExoPlayer/issues/4983
https://github.com/google/ExoPlayer/issues/4176
### [REQUIRED] Question
We have an HLS SSAI stream with ads separated by #EXT-X-DISCONTINUITY tag. As part of our flow we should be able to play ads even if user seek behind the ad position. So basically when we detect that, we are doing basic seek adjustment to the beginning of the ad. The problem raises when ad had reached to the end and we want to adjust that seek position to the initially requested one(by the user).
Currently we request playhead position once in ~1s. When ad length is 2.5s player will start playing content that comes immediately after ad for 0.5s. Only next getCurrentPosition() request would notify us that ad has ended and we need to adjust seeking to the originaly requested position.
Basically we can adjust our calls getCurrentPosition() to be more frequent (something that we want to avoid). I was thinking that hence we have a #EXT-X-DISCONTINUITY tag that separate our ads from content - notification of reaching that tag might be really useful for us to detect that transition.
Are you planning to expose that behaviour? Is there anything to be aware of if we decide to implement it by our own?
Any input from you will be really useful.
Thank you in advance.
Contributor guide
Assessment
This issue has not been assessed yet.