shaka-packager/packager/mpd/base
KongQun Yang 772aa7c93f Do not force earliest_presentation_time to 0 for VOD
Instead, the actual earliest presentation time is used except for
the first segment if there is an offset between presentation time
(pts) and decoding time (dts).

Chrome (as of v66) reports dts instead of pts in buffered ranges in
MSE API. To avoid breaking Chrome, the earliest_presentation_time
of the first segment is set to its dts as Chrome does not like negative
values for
  adjusted dts = dts + Period@start (0 for the first period)
                 - presentationTimeOffset (earliest_presentation_time).

Fixes #303.

Change-Id: I5ca80e05d5570961400499436f2bcc01f06e69e0
2018-04-09 18:39:15 +00:00
..
xml Generate a more accurate time in Period@duration 2018-04-03 21:42:33 +00:00
adaptation_set.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
adaptation_set.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
adaptation_set_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
bandwidth_estimator.cc Modify include headers to have "packager" in the path 2014-10-02 12:53:29 -07:00
bandwidth_estimator.h Move source code into packager directory 2014-10-02 12:32:14 -07:00
bandwidth_estimator_unittest.cc Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
content_protection_element.cc Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
content_protection_element.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
media_info.proto Add Text Codec To Codec String 2018-02-28 19:23:36 +00:00
mock_mpd_builder.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
mock_mpd_builder.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
mock_mpd_notifier.cc Part one of supporting live profile with static mpd 2017-01-13 19:59:49 +00:00
mock_mpd_notifier.h Propage CueEvent to MpdNotifier/HlsNotifier 2018-01-04 18:25:03 +00:00
mpd_builder.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-09 18:39:15 +00:00
mpd_builder.h Support UTCTiming 2018-04-04 01:37:01 +00:00
mpd_builder_unittest.cc Do not force earliest_presentation_time to 0 for VOD 2018-04-09 18:39:15 +00:00
mpd_notifier.h Propage CueEvent to MpdNotifier/HlsNotifier 2018-01-04 18:25:03 +00:00
mpd_notifier_util.cc Move packager/media/file to packager/file 2017-07-17 12:08:28 -07:00
mpd_notifier_util.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
mpd_options.h Consolidate MpdParams into MpdOptions 2017-08-18 11:57:41 -07:00
mpd_utils.cc Generate a more accurate time in Period@duration 2018-04-03 21:42:33 +00:00
mpd_utils.h Generate a more accurate time in Period@duration 2018-04-03 21:42:33 +00:00
period.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
period.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
period_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
representation.cc Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
representation.h Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
representation_unittest.cc Write @startNumber for SegmentTemplate with $Time$ too 2018-03-30 20:35:27 +00:00
segment_info.h Rename top level namespace to shaka 2016-05-24 21:55:55 +00:00
simple_mpd_notifier.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
simple_mpd_notifier.h Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00
simple_mpd_notifier_unittest.cc Moves AdaptationSet@id management out of Period class 2018-03-22 12:15:43 -07:00