google / google/ExoPlayer

HlsMediaPlaylist.hasProgramDateTime is false when program date time is at epoch 0

Open
#10,305 5 comments 0 reactions 1 assignee Assigned to @tianyif View on GitHub
enhancement question
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I noticed that `HlsMediaPlaylist.hasProgramDateTime` is set to `false` for some streams that actually have a `#EXT-X-PROGRAM-DATE-TIME` tag.
To be more specific, the property is set `false` if the date time is set to epoch 0 (i.e. `#EXT-X-PROGRAM-DATE-TIME:1970-01-01T00:00:00.000Z`). As an effect the `Window.windowStartTimeMs` will be set to "unset".

Before filing a bug report I want to check with you if this is intentional for some reason or indeed a bug. Also maybe I am missing some detail of the HLS spec, but to my understanding the program date time could be basically any timestamp.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.