shaka-packager/packager/mpd
KongQun Yang ee9b7f6392 Calculate presentationTimeOffset and Period@duration from segments
Prefer timestamps from Video AdaptationSets if available - this avoids
possible video playback jitters due to gaps.

presentationTimeOffset is not applied to the first period as it may in
negative dts which Chrome does not like: https://crbug.com/398141.

It is safe to apply to subsequent periods as the actual offset applied
takes Period@start into consideration:

    offset = Period@start - presentationTimeOffset

The result timestamp with offset applied is close to Period@start, so
it is unlikely to result in a negative dts value.

Closes b/73899306.

Change-Id: If8361f5469610093b3aac6675754536ad7e83c4c
2018-03-01 08:55:10 -08:00
..
base Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
public Consolidate MpdParams into MpdOptions 2017-08-18 11:57:41 -07:00
test Calculate presentationTimeOffset and Period@duration from segments 2018-03-01 08:55:10 -08:00
util Merge SimpleMpdNotifier and DashIopMpdNotifier 2017-12-22 15:56:14 -08:00
mpd.gyp Workaround for possible rounding errors in MSE 2018-01-20 01:18:45 +00:00