From 87762c03b64710610df81d231debf7caf0aae096 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sun, 21 Jun 2026 10:16:25 +0200 Subject: [PATCH] Fix linux playback --- src-tauri/src/repository/online.rs | 63 ++++++++++++++++++++++++++---- 1 file changed, 56 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/repository/online.rs b/src-tauri/src/repository/online.rs index 01bc3f7..b87aeb7 100644 --- a/src-tauri/src/repository/online.rs +++ b/src-tauri/src/repository/online.rs @@ -193,9 +193,16 @@ impl OnlineRepository { }) } - /// Get a video stream URL for playback with optional seeking support. - /// For direct streams, uses /Videos/{id}/stream.mp4 with transcoding to support seeking. - /// For transcoded streams (HEVC/10-bit), includes StartTimeTicks parameter. + /// Get a video stream URL for playback at an arbitrary position (resume, + /// transcoded seeking, audio-track switching). + /// + /// Returns an HLS master playlist (`/Videos/{id}/master.m3u8`) transcoded to + /// h264/aac. HLS is used rather than a progressive `stream.mp4` because the + /// HTML5 `