mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync fixes
This commit is contained in:
parent
dfce8df586
commit
fa08c6245b
3 changed files with 36 additions and 15 deletions
|
@ -1446,3 +1446,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.homeTopViews .cardText{
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
profile.MaxStreamingBitrate = bitrateSetting;
|
profile.MaxStreamingBitrate = bitrateSetting;
|
||||||
profile.MaxStaticBitrate = 40000000;
|
profile.MaxStaticBitrate = 40000000;
|
||||||
profile.MusicStreamingTranscodingBitrate = 128000;
|
profile.MusicStreamingTranscodingBitrate = Math.min(bitrateSetting, 192000);
|
||||||
|
|
||||||
profile.DirectPlayProfiles = [];
|
profile.DirectPlayProfiles = [];
|
||||||
profile.DirectPlayProfiles.push({
|
profile.DirectPlayProfiles.push({
|
||||||
|
@ -232,12 +232,14 @@
|
||||||
{
|
{
|
||||||
Condition: 'Equals',
|
Condition: 'Equals',
|
||||||
Property: 'IsCabac',
|
Property: 'IsCabac',
|
||||||
Value: 'true'
|
Value: 'true',
|
||||||
|
IsRequired: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Condition: 'NotEquals',
|
Condition: 'NotEquals',
|
||||||
Property: 'IsAnamorphic',
|
Property: 'IsAnamorphic',
|
||||||
Value: 'true'
|
Value: 'true',
|
||||||
|
IsRequired: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Condition: 'EqualsAny',
|
Condition: 'EqualsAny',
|
||||||
|
@ -263,7 +265,8 @@
|
||||||
{
|
{
|
||||||
Condition: 'NotEquals',
|
Condition: 'NotEquals',
|
||||||
Property: 'IsAnamorphic',
|
Property: 'IsAnamorphic',
|
||||||
Value: 'true'
|
Value: 'true',
|
||||||
|
IsRequired: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Condition: 'LessThanEqual',
|
Condition: 'LessThanEqual',
|
||||||
|
@ -622,11 +625,23 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function supportsDirectPlay(mediaSource) {
|
||||||
|
|
||||||
|
if (mediaSource.SupportsDirectPlay && mediaSource.Protocol == 'Http' && !mediaSource.RequiredHttpHeaders.length) {
|
||||||
|
|
||||||
|
// TODO: Need to verify the host is going to be reachable
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function getOptimalMediaSource(mediaType, versions) {
|
function getOptimalMediaSource(mediaType, versions) {
|
||||||
|
|
||||||
|
alert(JSON.stringify(versions));
|
||||||
var optimalVersion = versions.filter(function (v) {
|
var optimalVersion = versions.filter(function (v) {
|
||||||
|
|
||||||
v.enableDirectPlay = v.SupportsDirectPlay && v.Protocol == 'Http' && !v.RequiredHttpHeaders.length;
|
v.enableDirectPlay = supportsDirectPlay(v);
|
||||||
|
|
||||||
return v.enableDirectPlay;
|
return v.enableDirectPlay;
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div style="display:none;">
|
||||||
<br />
|
<br />
|
||||||
<h1>${HeaderSupporterBenefits}</h1>
|
<h1>${HeaderSupporterBenefits}</h1>
|
||||||
<p class="linkSupporterKeyMessage"></p>
|
<p class="linkSupporterKeyMessage"></p>
|
||||||
|
@ -102,6 +103,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div data-role="popup" class="popupAddUser popup" data-theme="a">
|
<div data-role="popup" class="popupAddUser popup" data-theme="a">
|
||||||
|
|
||||||
<div class="ui-bar-a" style="text-align: center; padding: 0 20px; position: relative;">
|
<div class="ui-bar-a" style="text-align: center; padding: 0 20px; position: relative;">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue