feat(src/app.rs): add function to compute playlist segment size based on file size #30

Merged
wandabastyle merged 2 commits from pvr into main 2026-04-30 13:14:17 +02:00
wandabastyle commented 2026-04-30 13:10:38 +02:00 (Migrated from github.com)
  • Added `compute_playlist_segment_size` function to dynamically calculate playlist segment sizes based on file size.
  • Targeted 900 segments with a minimum of 2MB and maximum of 32MB segment sizes.
  • Implemented rounding to ensure segment sizes are in multiples of 1MB.
  • Updated `play_recording_playlist` to use the new `compute_playlist_segment_size` function instead of a fixed segment size.
- Added \`compute_playlist_segment_size\` function to dynamically calculate playlist segment sizes based on file size. - Targeted 900 segments with a minimum of 2MB and maximum of 32MB segment sizes. - Implemented rounding to ensure segment sizes are in multiples of 1MB. - Updated \`play_recording_playlist\` to use the new \`compute_playlist_segment_size\` function instead of a fixed segment size.
Sign in to join this conversation.
No description provided.