andrewlewis d8d3bd7b3f Make the period and initial window positions match for all HLS streams
Before this change, HlsMediaSource timelines had a period starting at the epoch.
For VOD streams the window position in the period was the program date time.

This change makes period and initial window positions match. For live streams
the window position advances as segments are removed, so its position in the
period is the difference between the initial program date time and the program
date time of the latest playlist.

This also makes it possible to insert ads in VOD HLS content with program date
time, as the period and window are now aligned.

Issue: #3865

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187590948
2018-03-07 18:28:51 +00:00
..
2017-08-07 13:38:15 +01:00

ExoPlayer HLS library module

Provides support for HTTP Live Streaming (HLS) content. To play HLS content, instantiate a HlsMediaSource and pass it to ExoPlayer.prepare.

  • Javadoc: Classes matching com.google.android.exoplayer2.source.hls.* belong to this module.