fix(android): play video_rendition in viewer; Samsung playback was broken #1531
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/android-video-playback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Videos in the Android timeline viewer showed "Video konnte nicht geladen werden" on Samsung devices; cast playback of the same items worked.
Root cause
videoPlaybackUrlpreferredpreviewUrl— for videos that is the poster image — and fell through to/api/media/{id}/original?purpose=view. On modern Samsung phones the original is HEVC/HEIF, which ExoPlayer's default decode path cannot play. The server-side 720p H.264/AACvideo_rendition(spec 059) was already mapped intoTimelineItemUi.videoRenditionUrland consumed by the cast path (CastMedia), but the local viewer never preferred it.Change
ViewerPage.videoPlaybackUrl: rendition → preview poster (defensive) → original (old-server fallback), mirroring the cast preference order.video_previewjob was unimplemented and/originalnot user-facing.VideoPlaybackUrlTest: pins all three branches incl. absolutised-rendition and null-server cases.KNOWN_ISSUES.md: ISSUE-236 archived resolved.:app:testDebugUnitTest: 935 tests, 0 failures.