Skip to content

stream.dash: refactor segment timeline generator #5244

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

Merged

Conversation

bastimeyer
Copy link
Member

  • Move segment timeline logic from SegmentTemplate.format_media() into the new method SegmentTemplate.segment_timeline(), similar to SegmentTemplate.segment_numbers()
  • Simplify segment timeline generator
    • Use a threshold datetime for the presentation delay
    • Don't collect every segment on subsequent manifests
  • Include segment number for timeline segments (for the debug log)
  • Rewrite continued dynamic timeline test (same results)

- Move segment timeline logic from `SegmentTemplate.format_media()`
  into the new method `SegmentTemplate.segment_timeline()`, similar to
  `SegmentTemplate.segment_numbers()`
- Simplify segment timeline generator
  - Use a threshold `datetime` for the presentation delay
  - Don't collect every segment on subsequent manifests
- Include segment number for timeline segments (for the debug log)
- Rewrite continued dynamic timeline test (same results)
@gravyboat gravyboat merged commit a866a37 into streamlink:master Mar 13, 2023
@bastimeyer bastimeyer deleted the stream/dash/refactor-segment-timeline branch March 13, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants