🎥 Make videos programmatically with React
@remotion/media-parser: Address code review comments with clarifying comments
copilot-swe-agent[bot]44a3e529c4b1
diff --git a/packages/media-parser/src/containers/m3u/after-manifest-fetch.ts b/packages/media-parser/src/containers/m3u/after-manifest-fetch.tsindex f96e0f247b..c3123908d6 100644--- a/packages/media-parser/src/containers/m3u/after-manifest-fetch.ts+++ b/packages/media-parser/src/containers/m3u/after-manifest-fetch.ts@@ -37,8 +37,10 @@ export const afterManifestFetch = async ({const independentSegments = isIndependentSegments(structure);const streams = getM3uStreams({structure, originalSrc: src, readerInterface});- // If there are no streams, this is a single media playlist (not a master playlist)- // Treat it as the initial URL to iterate over+ // Handle single media playlists (not master playlists):+ // 1. If !independentSegments: Old-style single playlist without segment independence+ // 2. If streams === null: Single media playlist (has EXT-X-INDEPENDENT-SEGMENTS but no EXT-X-STREAM-INF)+ // Both cases should iterate over the current URL as the media playlistif (!independentSegments || streams === null) {if (!src) {throw new Error('No src');diff --git a/packages/media-parser/src/containers/m3u/parse-directive.ts b/packages/media-parser/src/containers/m3u/parse-directive.tsindex e31a99572f..7a9dcf413e 100644--- a/packages/media-parser/src/containers/m3u/parse-directive.ts+++ b/packages/media-parser/src/containers/m3u/parse-directive.ts@@ -147,6 +147,9 @@ export const parseM3uDirective = (str: string): M3uBox => {throw new Error('#EXT-X-PROGRAM-DATE-TIME directive must have a value');}+ // Store the raw ISO 8601 date-time string without validation.+ // This directive associates media segments with absolute dates but+ // doesn't affect parsing of tracks, dimensions, or other metadata.return {type: 'm3u-program-date-time',dateTime: value,