From 62dbf0d106f8f3130d5d5329bd3aff0f76f93c90 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Tue, 14 Mar 2023 20:37:20 +0800 Subject: [PATCH] Drop progressive transcoding in web client Signed-off-by: nyanmisaka --- src/scripts/browserDeviceProfile.js | 46 ----------------------------- 1 file changed, 46 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 0cd95e154d..1fdaea30dd 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -689,30 +689,6 @@ export function canPlaySecondaryAudio(videoTestElement) { }); }); - if (canPlayMkv && !browser.tizen && options.enableMkvProgressive !== false) { - profile.TranscodingProfiles.push({ - Container: 'mkv', - Type: 'Video', - AudioCodec: videoAudioCodecs.join(','), - VideoCodec: mp4VideoCodecs.join(','), - Context: 'Streaming', - MaxAudioChannels: physicalAudioChannels.toString(), - CopyTimestamps: true - }); - } - - if (canPlayMkv) { - profile.TranscodingProfiles.push({ - Container: 'mkv', - Type: 'Video', - AudioCodec: videoAudioCodecs.join(','), - VideoCodec: mp4VideoCodecs.join(','), - Context: 'Static', - MaxAudioChannels: physicalAudioChannels.toString(), - CopyTimestamps: true - }); - } - if (canPlayHls() && options.enableHls !== false) { if (hlsInFmp4VideoCodecs.length && hlsInFmp4VideoAudioCodecs.length && userSettings.preferFmp4HlsContainer() && (browser.safari || browser.tizen || browser.web0s)) { profile.TranscodingProfiles.push({ @@ -743,28 +719,6 @@ export function canPlaySecondaryAudio(videoTestElement) { } } - // Progressive mp4 transcoding - if (mp4VideoCodecs.length && videoAudioCodecs.length) { - profile.TranscodingProfiles.push({ - Container: 'mp4', - Type: 'Video', - AudioCodec: videoAudioCodecs.join(','), - VideoCodec: mp4VideoCodecs.join(','), - Context: 'Streaming', - Protocol: 'http', - MaxAudioChannels: physicalAudioChannels.toString() - }); - } - - profile.TranscodingProfiles.push({ - Container: 'mp4', - Type: 'Video', - AudioCodec: videoAudioCodecs.join(','), - VideoCodec: 'h264', - Context: 'Static', - Protocol: 'http' - }); - profile.ContainerProfiles = []; profile.CodecProfiles = [];