Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for #EXT-X-PROGRAM-DATE-TIME #106

Merged
merged 1 commit into from Dec 22, 2015

Conversation

aisch
Copy link

@aisch aisch commented Dec 2, 2015

No description provided.

totalduration += duration;
byteRangeStartOffset = null;
programDateTime = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a thought, if programDateTime is defined you could also increment it with frag duration to get a relevant date for subsequent frags

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's probably what it should do. the lib i used to generate m3u8s only includes ext-x-program-date-time tag @ start of playlist or discontinuities. so seems to assume you can compute using durations from there.

i was just using video.currentTime to offset but if we maintain it w/ frag i could just use that.

@mangui mangui merged commit 69264ff into video-dev:master Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants