From b15e381f81d7320387f8001cf63135539189319c Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 4 Feb 2026 12:46:54 +0000 Subject: [PATCH] Use /ipfs-ts/ path for HLS segments to get correct MIME type --- streaming/gpu_output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/streaming/gpu_output.py b/streaming/gpu_output.py index 9f3f290..4c1e1b7 100644 --- a/streaming/gpu_output.py +++ b/streaming/gpu_output.py @@ -399,7 +399,9 @@ class GPUHLSOutput: for seg_num in sorted(self.segment_cids.keys()): cid = self.segment_cids[seg_num] lines.append(f"#EXTINF:{self.segment_duration:.3f},") - lines.append(f"{self.ipfs_gateway}/{cid}") + # Use /ipfs-ts/ path for segments to get correct MIME type (video/mp2t) + segment_gateway = self.ipfs_gateway.replace("/ipfs", "/ipfs-ts") + lines.append(f"{segment_gateway}/{cid}") playlist_content = "\n".join(lines) + "\n"