1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

rework result factory

This commit is contained in:
Luke Pulverenti 2016-11-10 09:41:24 -05:00
parent 2839c095b4
commit 41c7f70286
5 changed files with 25 additions and 27 deletions

View file

@ -394,14 +394,16 @@ define(['browser'], function (browser) {
Type: 'Audio',
AudioCodec: audioFormat,
Context: 'Streaming',
Protocol: 'http'
Protocol: 'http',
MaxAudioChannels: physicalAudioChannels.toString()
});
profile.TranscodingProfiles.push({
Container: audioFormat,
Type: 'Audio',
AudioCodec: audioFormat,
Context: 'Static',
Protocol: 'http'
Protocol: 'http',
MaxAudioChannels: physicalAudioChannels.toString()
});
});
@ -489,14 +491,6 @@ define(['browser'], function (browser) {
profile.ContainerProfiles = [];
profile.CodecProfiles = [];
profile.CodecProfiles.push({
Type: 'Audio',
Conditions: [{
Condition: 'LessThanEqual',
Property: 'AudioChannels',
Value: '2'
}]
});
// Handle he-aac not supported
if (!videoTestElement.canPlayType('video/mp4; codecs="avc1.640029, mp4a.40.5"').replace(/no/, '')) {
@ -552,6 +546,12 @@ define(['browser'], function (browser) {
Value: 'true',
IsRequired: false
},
{
Condition: 'NotEquals',
Property: 'IsAVC',
Value: 'true',
IsRequired: false
},
{
Condition: 'EqualsAny',
Property: 'VideoProfile',