From a81bccb228e68314ba7fe8eabb1e2e67d2de5389 Mon Sep 17 00:00:00 2001 From: Xaekai Date: Sun, 18 Sep 2022 19:45:41 -0700 Subject: [PATCH] Fix inadvertent code reversions --- src/custom-media.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/custom-media.js b/src/custom-media.js index bb57792b..6d2bbc38 100644 --- a/src/custom-media.js +++ b/src/custom-media.js @@ -31,10 +31,6 @@ const SOURCE_CONTENT_TYPES = new Set([ 'video/webm' ]); -const LIVE_ONLY_CONTENT_TYPES = new Set([ - 'application/dash+xml' -]); - const AUDIO_ONLY_CONTENT_TYPES = new Set([ 'audio/aac', 'audio/mp4', @@ -202,10 +198,6 @@ function validateSources(sources, data) { `unacceptable source contentType "${source.contentType}"` ); - if (LIVE_ONLY_CONTENT_TYPES.has(source.contentType) && !data.live) - throw new ValidationError( - `contentType "${source.contentType}" requires live: true` - ); // TODO (Xaekai): This should be allowed if (/*!AUDIO_ONLY_CONTENT_TYPES.has(source.contentType) && */!SOURCE_QUALITIES.has(source.quality)) throw new ValidationError(`unacceptable source quality "${source.quality}"`);