aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json
diff options
context:
space:
mode:
authorgnattu <gnattuoc@me.com>2024-09-13 15:44:03 +0800
committergnattu <gnattuoc@me.com>2024-09-13 15:44:03 +0800
commit6395f4889d18bf4b12567ca7c28e9d5a22506e73 (patch)
treeb96f6a5cfc7c5b2dc9773b93972ebace87c3603b /tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json
parent3c64e1d33fecc4815a9f491d08833310e7a906a2 (diff)
Update unit test for StreamBuilder to reflect current server and clients
Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json')
-rw-r--r--tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json445
1 files changed, 188 insertions, 257 deletions
diff --git a/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json
index 9874793d37..21ae7e5cb3 100644
--- a/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json
+++ b/tests/Jellyfin.Model.Tests/Test Data/DeviceProfile-Firefox.json
@@ -15,426 +15,357 @@
"IgnoreTranscodeByteRangeRequests": false,
"DirectPlayProfiles": [
{
- "Container": "webm",
"AudioCodec": "vorbis,opus",
- "VideoCodec": "vp8,vp9,av1",
+ "Container": "webm",
"Type": "Video",
- "$type": "DirectPlayProfile"
+ "VideoCodec": "vp8,vp9,av1"
},
{
+ "AudioCodec": "aac,mp3,mp2,opus,flac,vorbis",
"Container": "mp4,m4v",
- "AudioCodec": "aac,mp3,opus,flac,alac,vorbis",
- "VideoCodec": "h264,vp8,vp9,av1",
"Type": "Video",
- "$type": "DirectPlayProfile"
+ "VideoCodec": "h264,vp9,av1"
},
{
"Container": "opus",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
- "Container": "webm",
"AudioCodec": "opus",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Container": "webm",
+ "Type": "Audio"
+ },
+ {
+ "AudioCodec": "mp3",
+ "Container": "ts",
+ "Type": "Audio"
},
{
"Container": "mp3",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
"Container": "aac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
- "Container": "m4a",
"AudioCodec": "aac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Container": "m4a",
+ "Type": "Audio"
},
{
- "Container": "m4b",
"AudioCodec": "aac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Container": "m4b",
+ "Type": "Audio"
},
{
"Container": "flac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
- },
- {
- "Container": "alac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
- },
- {
- "Container": "m4a",
- "AudioCodec": "alac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
- },
- {
- "Container": "m4b",
- "AudioCodec": "alac",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
"Container": "webma",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
- "Container": "webm",
"AudioCodec": "webma",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Container": "webm",
+ "Type": "Audio"
},
{
"Container": "wav",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
},
{
"Container": "ogg",
- "Type": "Audio",
- "$type": "DirectPlayProfile"
+ "Type": "Audio"
+ },
+ {
+ "AudioCodec": "aac,mp2,opus,flac",
+ "Container": "hls",
+ "Type": "Video",
+ "VideoCodec": "av1,h264,vp9"
+ },
+ {
+ "AudioCodec": "aac,mp3,mp2",
+ "Container": "hls",
+ "Type": "Video",
+ "VideoCodec": "h264"
}
],
"TranscodingProfiles": [
{
- "Container": "ts",
- "Type": "Audio",
"AudioCodec": "aac",
- "Protocol": "hls",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
- "Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 2,
- "SegmentLength": 0,
"BreakOnNonKeyFrames": true,
- "$type": "TranscodingProfile"
+ "Container": "mp4",
+ "Context": "Streaming",
+ "EnableAudioVbrEncoding": true,
+ "MaxAudioChannels": "2",
+ "MinSegments": "2",
+ "Protocol": "hls",
+ "Type": "Audio"
},
{
- "Container": "aac",
- "Type": "Audio",
"AudioCodec": "aac",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "aac",
"Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "mp3",
- "Type": "Audio",
"AudioCodec": "mp3",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "mp3",
"Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "opus",
- "Type": "Audio",
"AudioCodec": "opus",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "opus",
"Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "wav",
- "Type": "Audio",
"AudioCodec": "wav",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "wav",
"Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "opus",
- "Type": "Audio",
"AudioCodec": "opus",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "opus",
"Context": "Static",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "mp3",
- "Type": "Audio",
"AudioCodec": "mp3",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "mp3",
"Context": "Static",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "aac",
- "Type": "Audio",
"AudioCodec": "aac",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "aac",
"Context": "Static",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "wav",
- "Type": "Audio",
"AudioCodec": "wav",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "wav",
"Context": "Static",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "Protocol": "http",
+ "Type": "Audio"
},
{
- "Container": "ts",
- "Type": "Video",
- "VideoCodec": "h264",
- "AudioCodec": "aac,mp3",
- "Protocol": "hls",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
- "Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 2,
- "SegmentLength": 0,
+ "AudioCodec": "aac,mp2,opus,flac",
"BreakOnNonKeyFrames": true,
- "$type": "TranscodingProfile"
- },
- {
- "Container": "webm",
- "Type": "Video",
- "VideoCodec": "vp8,vp9,av1,vpx",
- "AudioCodec": "vorbis,opus",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
+ "Container": "mp4",
"Context": "Streaming",
- "EnableSubtitlesInManifest": false,
- "MaxAudioChannels": "6",
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "MaxAudioChannels": "2",
+ "MinSegments": "2",
+ "Protocol": "hls",
+ "Type": "Video",
+ "VideoCodec": "av1,h264,vp9"
},
{
- "Container": "mp4",
+ "AudioCodec": "aac,mp3,mp2",
+ "BreakOnNonKeyFrames": true,
+ "Container": "ts",
+ "Context": "Streaming",
+ "MaxAudioChannels": "2",
+ "MinSegments": "2",
+ "Protocol": "hls",
"Type": "Video",
- "VideoCodec": "h264",
- "AudioCodec": "aac,mp3,opus,flac,alac,vorbis",
- "Protocol": "http",
- "EstimateContentLength": false,
- "EnableMpegtsM2TsMode": false,
- "TranscodeSeekInfo": "Auto",
- "CopyTimestamps": false,
- "Context": "Static",
- "EnableSubtitlesInManifest": false,
- "MinSegments": 0,
- "SegmentLength": 0,
- "BreakOnNonKeyFrames": false,
- "$type": "TranscodingProfile"
+ "VideoCodec": "h264"
}
],
"CodecProfiles": [
{
- "Type": "VideoAudio",
+ "Codec": "aac",
"Conditions": [
{
"Condition": "Equals",
+ "IsRequired": false,
"Property": "IsSecondaryAudio",
- "Value": "false",
+ "Value": "false"
+ }
+ ],
+ "Type": "VideoAudio"
+ },
+ {
+ "Conditions": [
+ {
+ "Condition": "LessThanEqual",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "AudioChannels",
+ "Value": "2"
}
],
- "Codec": "aac",
- "$type": "CodecProfile"
+ "Type": "Audio"
},
{
- "Type": "VideoAudio",
"Conditions": [
{
+ "Condition": "LessThanEqual",
+ "IsRequired": false,
+ "Property": "AudioChannels",
+ "Value": "2"
+ },
+ {
"Condition": "Equals",
- "Property": "IsSecondaryAudio",
- "Value": "false",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "IsSecondaryAudio",
+ "Value": "false"
}
],
- "$type": "CodecProfile"
+ "Type": "VideoAudio"
},
{
- "Type": "Video",
+ "Codec": "h264",
"Conditions": [
{
"Condition": "NotEquals",
- "Property": "IsAnamorphic",
- "Value": "true",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "IsAnamorphic",
+ "Value": "true"
},
{
"Condition": "EqualsAny",
+ "IsRequired": false,
"Property": "VideoProfile",
- "Value": "high|main|baseline|constrained baseline",
+ "Value": "high|main|baseline|constrained baseline"
+ },
+ {
+ "Condition": "EqualsAny",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "VideoRangeType",
+ "Value": "SDR"
},
{
"Condition": "LessThanEqual",
- "Property": "VideoLevel",
- "Value": "52",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "VideoLevel",
+ "Value": "52"
},
{
"Condition": "NotEquals",
- "Property": "IsInterlaced",
- "Value": "true",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "IsInterlaced",
+ "Value": "true"
}
],
- "Codec": "h264",
- "$type": "CodecProfile"
+ "Type": "Video"
},
{
- "Type": "Video",
+ "Codec": "hevc",
"Conditions": [
{
"Condition": "NotEquals",
- "Property": "IsAnamorphic",
- "Value": "true",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "IsAnamorphic",
+ "Value": "true"
},
{
"Condition": "EqualsAny",
+ "IsRequired": false,
"Property": "VideoProfile",
- "Value": "main",
+ "Value": "main"
+ },
+ {
+ "Condition": "EqualsAny",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "VideoRangeType",
+ "Value": "SDR"
},
{
"Condition": "LessThanEqual",
- "Property": "VideoLevel",
- "Value": "120",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "VideoLevel",
+ "Value": "120"
},
{
"Condition": "NotEquals",
+ "IsRequired": false,
"Property": "IsInterlaced",
- "Value": "true",
+ "Value": "true"
+ }
+ ],
+ "Type": "Video"
+ },
+ {
+ "Codec": "vp9",
+ "Conditions": [
+ {
+ "Condition": "EqualsAny",
"IsRequired": false,
- "$type": "ProfileCondition"
+ "Property": "VideoRangeType",
+ "Value": "SDR"
}
],
- "Codec": "hevc",
- "$type": "CodecProfile"
+ "Type": "Video"
+ },
+ {
+ "Codec": "av1",
+ "Conditions": [
+ {
+ "Condition": "NotEquals",
+ "IsRequired": false,
+ "Property": "IsAnamorphic",
+ "Value": "true"
+ },
+ {
+ "Condition": "EqualsAny",
+ "IsRequired": false,
+ "Property": "VideoProfile",
+ "Value": "main"
+ },
+ {
+ "Condition": "EqualsAny",
+ "IsRequired": false,
+ "Property": "VideoRangeType",
+ "Value": "SDR"
+ },
+ {
+ "Condition": "LessThanEqual",
+ "IsRequired": false,
+ "Property": "VideoLevel",
+ "Value": "19"
+ }
+ ],
+ "Type": "Video"
}
],
"ResponseProfiles": [
{
"Container": "m4v",
- "Type": "Video",
"MimeType": "video/mp4",
- "$type": "ResponseProfile"
+ "Type": "Video"
}
],
"SubtitleProfiles": [
{
"Format": "vtt",
- "Method": "External",
- "$type": "SubtitleProfile"
+ "Method": "External"
},
{
"Format": "ass",
- "Method": "External",
- "$type": "SubtitleProfile"
+ "Method": "External"
},
{
"Format": "ssa",
- "Method": "External",
- "$type": "SubtitleProfile"
+ "Method": "External"
}
],
"$type": "DeviceProfile"