v0.4.38: auto-encode URLs for playback too + eager cache dir in active gameDir
All checks were successful
build / build (push) Successful in 1m47s

- Share the percent-encoder as VideoCache.encodeUrl() and apply it to the
  live URL handed to FFmpeg in VideoPlayback (cache-miss path), not just the
  cache download. The lookup key stays the anchor's raw URL so cache hits
  still match; only the wire/FFmpeg URL is encoded. Non-ASCII paths now both
  cache and stream correctly instead of relying on FFmpeg's lenient handling.
- Add VideoCache.ensureCacheDir(), called on every client JOIN, to create
  video_player_cache/ inside whatever game dir Minecraft actually runs from
  (vanilla .minecraft or a custom-launcher dir like .mc_custom) and log the
  resolved absolute path, so the folder exists up front and the active
  install location is visible in the log.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
tkrmagid
2026-06-14 02:21:27 +09:00
parent e1205c294b
commit 73d12a02c3
4 changed files with 50 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ org.gradle.configuration-cache=false
# Mod
mod_id=video_player
mod_version=0.4.37
mod_version=0.4.38
maven_group=com.ejclaw.videoplayer
archives_base_name=video_player