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"