From 6fbb30c3e20083924612fdda70e794723b20c109 Mon Sep 17 00:00:00 2001 From: Seth Madison Date: Thu, 29 Jun 2023 12:46:51 -0700 Subject: [PATCH] Only parse/probe TS for if the reference is not an MP4 and not WebM --- lib/media/media_source_engine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/media/media_source_engine.js b/lib/media/media_source_engine.js index 94e915b377..2d567ea9a3 100644 --- a/lib/media/media_source_engine.js +++ b/lib/media/media_source_engine.js @@ -698,7 +698,8 @@ shaka.media.MediaSourceEngine = class { timestamp = startTime; } } - } else if (shaka.util.TsParser.probe(uint8ArrayData)) { + } else if (!mimeType.includes('/mp4') && !mimeType.includes('/webm') && + shaka.util.TsParser.probe(uint8ArrayData)) { const tsParser = new shaka.util.TsParser().parse(uint8ArrayData); const startTime = tsParser.getStartTime()[contentType]; if (startTime != null) {