Skip to content

Releases

YTCache 1.2.0 — real-length seekbar, fading chrome, working back

Choose a tag to compare

@ampl0 ampl0 released this 25 Nov 21:36

YTCache 1.2.0

Capture a YouTube video while it plays, then watch it offline — full-screen, swipeable, with the
video's real length on the seek bar.

What changed

The player tells the truth about time

  • The seek bar now spans the real duration of the video, not the length of the capture. A
    10-minute cache of a 40-minute video looks like a 40-minute video.
  • The cached part is drawn as a band on that bar, and a chip reads Cached 12:34–24:10 / 45:00.
  • Auto-align: playback starts at your saved position when it is inside the cached window,
    otherwise at the first cached frame — no more sitting at 0:00 on a mid-video capture.
  • Seeking outside the cached window snaps to the nearest cached frame and tells you the window.
  • Remaining time is counted against the real duration.

YouTube-style fading chrome

  • Title, channel, actions and controls fade out after ~2.6 s of playback and come back on tap,
    pause or seek. They no longer cover the bottom of every video permanently.

A back button that works on YouTube

  • Fullscreen video → close it.
  • YouTube's own in-page history (via a new pushState-aware bridge) → go back one screen.
  • WebView history → go back a page.
  • Otherwise Press back again to exit (2.2 s window).

Extras

  • Tap ripple on the player surface.
  • The last video you watched is restored when you reopen the player.
  • Fixed time listeners that could leave the clock and bar stale.

Also in this build (from 1.1.x)

  • Lossless export to MP4/WebM with sound, or audio-only; honest message when a codec pair has no
    legal container.
  • Library search and sorting (newest / oldest / largest / A–Z), multi-select batch export and delete.
  • Metadata and thumbnail captured at cache time, so the library works with no connection.

Install

adb install -r YTCache-1.2.0-release.apk

Android 8.0+ (API 26), package com.ytcache.app, signed with the project key CN=YTCache.
YTCache-1.2.0-debug.apk is the same code with the debug signature — only use it if a device
refuses the release signature (different keys cannot upgrade each other; uninstall first).

Verification

  • ./gradlew test assembleDebug assembleRelease — green: 57 JVM tests.
  • node tools/test-core.js — 19/19 checks; node tools/test-hook.js — 19/19 checks.
  • apksigner verify passes; aapt dump badging reports versionCode 4 / 1.2.0 / minSdk 26.
  • SHA-256 of each APK is listed below; compare after download with sha256sum.

Not verified on physical hardware in this build environment. Timeline alignment, the chrome
fade and the back gesture follow documented WebView/MediaSource behaviour but were not exercised on
a device. Bug reports with adb logcat -s YTCacheMain YTCachePlayer are welcome.

Intended use

Cache content you are allowed to keep. No DRM is circumvented. Downloading copyrighted video may
violate YouTube's Terms of Service and local law.

Downloads

File Size SHA-256
YTCache-1.2.0-release.apk 4904790 bytes 9475e3f1fe0a930cc007408de86f7d15ef3b97a74d14be8e18a73a9d9a6bbc1e
YTCache-1.2.0-debug.apk 6087606 bytes bb9a244330c3d0d49cd6edb77ed43de8e345607bf2215b6d167addd7928c96e5

Signer certificate SHA-256: c7d3b35affd4beba3203e6420836148d184eabaaf907ce03d1fc9df5bcd10b93 (CN=YTCache).

Source and documentation: https://github.com/ampl0/YTCache