fix hls independently

This commit is contained in:
Vasilis Manetas 2025-08-25 15:32:15 +02:00
parent d8368e6d40
commit 1ae1629547

View file

@ -141,13 +141,6 @@ export function makeChromecastDisplayInterface(
request.currentTime = startAt;
if (caption?.url) request.activeTrackIds = [1];
if (source.type === "hls") {
const staticMedia = chrome.cast.media as any;
(mediaInfo as any).hlsSegmentFormat = staticMedia.HlsSegmentFormat.FMP4;
(mediaInfo as any).hlsVideoSegmentFormat =
staticMedia.HlsVideoSegmentFormat.FMP4;
}
const session = ops.instance.getCurrentSession();
session
?.loadMedia(request)