-
Notifications
You must be signed in to change notification settings - Fork 133
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
Segment time not available when loading segment #1563
Comments
Hi,
So here if I understand correctly the MPD is announcing segments before them being available, isn't that the source of the issue. We now avoid exposing too much information because that limited our ability to refactor things (for example exposing a I'm not totally against something like |
Hi, Thanks for the quick reply. Yes, SegmentTemplate. In our specific case the segments are produced by a wireless network camera and pushed to the cloud once the camera has connectivity. When fetching the segments from the cloud, the latency varies a bit and it typically takes around 4 seconds until the segments are available for download. Our problem is that the video buffer will contain missing segments (404) unless the segments close to live (within ~4 seconds of live) can be retried, since we know they might not yet exist in the cloud. We therefore compare segment start time with the current time. If the difference is less than 4 seconds we retry, otherwise we return an empty segment. To make the video more stable, we enforce a certain latency so that it doesn't try to play video that is too close to live (within 4 seconds of live). Perhaps there's another workaround? Otherwise segmentStart/segmentEnd would be great. The actual code:
|
It is no longer possible to access segment.time from segmentLoader since the segment object has been removed in version 4.x. We use segment.time to retry segment fetching in case the requested segment is not yet available. In our use case the segment might not yet be available if it's too close to live/present. The segment might not be available due to latency (the time between the creation of the stream and the stream being uploaded and available for fetching by RxPlayer). We have not found a workaround for this issue. Is it possible to re-add the segment time to the ISegmentLoaderContext?
Current version: 3.33.3
The text was updated successfully, but these errors were encountered: