Release: merge dev into main #25

Merged
nezumi merged 1 commit from dev into main 2026-11-22 04:05:41 +00:00

Merge dev into main to publish the next release. This PR is opened and refreshed automatically on every push to dev.

Changes since v1.0.2

  • Fetch YouTube streams in 10 MB ranges to stop stalls (#24) (501213e)

Release notes

  • Merge with a merge commit (not squash) so the changelog keeps every commit from dev.
  • Merging triggers the Release workflow, which bumps the patch version. For minor/major, put [skip release] in the merge commit title and run Actions > Release > Run workflow on main with the bump you want.
Merge `dev` into `main` to publish the next release. This PR is opened and refreshed automatically on every push to `dev`. ## Changes since v1.0.2 - Fetch YouTube streams in 10 MB ranges to stop stalls (#24) (501213e) ## Release notes - Merge with a **merge commit** (not squash) so the changelog keeps every commit from `dev`. - Merging triggers the `Release` workflow, which bumps the **patch** version. For minor/major, put `[skip release]` in the merge commit title and run Actions > Release > Run workflow on `main` with the bump you want.
Fetch YouTube streams in 10 MB ranges to stop stalls (#24)
All checks were successful
Release PR / release-pr (push) Successful in 4s
CI / build (push) Successful in 4m39s
501213e8a6
## Problem
On first play, video froze after ~7 s and only resumed much later. YouTube throttles a single open-ended download of a googlevideo stream (~1 MB/s after an initial burst), while bounded range requests (<=10 MB) are served at full speed (~90 MB/s measured on the same URL). ExoPlayer's progressive source opened one unbounded request per stream, so the 1080p video starved once the burst ran out.

## Fix
- New `ChunkedDataSource` wraps the OkHttp data source and reads each stream as consecutive 10 MB range requests (uses `clen` from the URL to report the total length).
- `PlaybackController.buildSource` uses it for both video and audio.
- Unit tests for chunk boundaries, mid-file opens, explicit lengths, servers that ignore range, and `clen`.

## Verified
Emulator (Android TV API 36), 1080p avc1 + opus: before, playback stalled at 7.3 s for 21 s; after, 90 s of continuous playback with no rebuffering, and restart (seek to 0) works. Not yet tested on the FPT box.

Vi: Sửa lỗi video bị khựng sau vài giây đầu khi phát bài
Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #24
nezumi merged commit a36a97f291 into main 2026-11-22 04:05:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nezumi/kara-tv-app!25
No description provided.