dashdemux: reworked the API to retrieve fragment timestamp, fragment duration and...
authorGianluca Gennari <gennarone@gmail.com>
Wed, 24 Oct 2012 14:30:01 +0000 (16:30 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:14:25 +0000 (18:14 -0300)
commit9387365fc9e408d266488e1d4b571646698dfdf7
tree5f9dfbd117cc8365f8ab4927122895553bf73820
parentdc5d7d258e4abbbc73a94ca05000e24c4b19accf
dashdemux: reworked the API to retrieve fragment timestamp, fragment duration and media presentation duration

This was necessary to support variable-duration Fragments.

in the new API:
- gst_mpd_client_get_current_position returns the timestamp of the NEXT fragment to download;
- gst_mpd_client_get_next_fragment_duration returns the duration of the next fragment to download;
- gst_mpd_client_get_media_presentation_duration returns the mediaPresentationDuration from the MPD file;

also there is a new internal parser function:
- gst_mpd_client_get_segment_duration extracts the constant segment duration from the MPD file
(only used when there is no SegmentTimeline syntax element in the current representation)

In gst_mpd_client_get_next_fragment, we set the timestamp/duration of the fragment just downloaded
copying the values from the corresponding GstMediaSegment.

TODO: rework SEEKING to support seeking across different Periods.
ext/dash/gstdashdemux.c
ext/dash/gstmpdparser.c
ext/dash/gstmpdparser.h