media icon indicating copy to clipboard operation
media copied to clipboard

How to download the segments from specific timestamp and specific duration in Dash Downloader ?

Open Kartikb59 opened this issue 8 months ago • 1 comments

We want to download the segments in dash downloader from specific timestamp and for a specific duration. We want to do it by finding the duration and timestamp of each segment.

We are calling DashManifestParser.parse method to get the manifest and the segment information, it returns DashManifest object, we are unable of find the duration and timestamp of each segment in this object.

Could you please let us know if there is any way to find this information ?

Kartikb59 avatar May 29 '25 06:05 Kartikb59

@tonihei could you please help us?

mayurk2 avatar Jun 04 '25 06:06 mayurk2

Media3 1.8.0 will have a startPositionUs and durationUs setters in DashDownloader.Factory, which I think handle exactly what you are looking for. Please give that a try and re-open the issue (or file a new one) if anything is missing to handle your use case.

tonihei avatar Jul 03 '25 16:07 tonihei