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

add DisplayTitle to media streams

This commit is contained in:
Luke Pulverenti 2016-05-14 14:02:06 -04:00
parent e54e1697fd
commit 5712b78c3e
9 changed files with 72 additions and 20 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.3.21",
"_release": "1.3.21",
"version": "1.3.25",
"_release": "1.3.25",
"_resolution": {
"type": "version",
"tag": "1.3.21",
"commit": "efe918d27e7c9a2c8373494bccf437f5273150c9"
"tag": "1.3.25",
"commit": "004eca200cd748222897d11f6bd92a29899d7945"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -170,6 +170,8 @@ define(['browser'], function (browser) {
return function (options) {
options = options || {};
var physicalAudioChannels = options.audioChannels || 2;
var bitrateSetting = getMaxBitrate();
var videoTestElement = document.createElement('video');
@ -314,7 +316,10 @@ define(['browser'], function (browser) {
AudioCodec: videoAudioCodecs.join(','),
VideoCodec: 'h264',
Context: 'Streaming',
CopyTimestamps: true
CopyTimestamps: true,
// If audio transcoding is needed, limit channels to number of physical audio channels
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
}
@ -337,9 +342,9 @@ define(['browser'], function (browser) {
AudioCodec: videoAudioCodecs.join(','),
VideoCodec: 'h264',
Context: 'Streaming',
Protocol: 'http',
// If audio transcoding is needed, limit to 2 channel
MaxAudioChannels: '2'
Protocol: 'http'
// Edit: Can't use this in firefox because we're seeing situations of no sound when downmixing from 6 channel to 2
//MaxAudioChannels: physicalAudioChannels.toString()
});
}
@ -351,7 +356,10 @@ define(['browser'], function (browser) {
AudioCodec: 'vorbis',
VideoCodec: 'vpx',
Context: 'Streaming',
Protocol: 'http'
Protocol: 'http',
// If audio transcoding is needed, limit channels to number of physical audio channels
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
}
@ -361,7 +369,10 @@ define(['browser'], function (browser) {
AudioCodec: videoAudioCodecs.join(','),
VideoCodec: 'h264',
Context: 'Streaming',
Protocol: 'http'
Protocol: 'http',
// If audio transcoding is needed, limit channels to number of physical audio channels
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
profile.TranscodingProfiles.push({
@ -403,6 +414,11 @@ define(['browser'], function (browser) {
Property: 'AudioChannels',
Value: videoAudioChannels
},
{
Condition: 'LessThanEqual',
Property: 'AudioBitrate',
Value: '128000'
},
{
Condition: 'Equals',
Property: 'IsSecondaryAudio',

View file

@ -18,6 +18,14 @@ define(['apphost', 'globalize', 'connectionManager'], function (appHost, globali
});
}
if (user.Policy.IsAdministrator) {
commands.push({
name: globalize.translate('Refresh'),
id: 'refresh'
});
}
if (item.Type != 'Timer' && user.Policy.EnablePublicSharing && appHost.supports('sharing')) {
commands.push({
name: globalize.translate('Share'),
@ -56,6 +64,11 @@ define(['apphost', 'globalize', 'connectionManager'], function (appHost, globali
reject();
});
break;
}
case 'refresh':
{
refresh(apiClient, itemId);
break;
}
case 'share':
@ -75,6 +88,23 @@ define(['apphost', 'globalize', 'connectionManager'], function (appHost, globali
});
}
function refresh(apiClient, itemId) {
apiClient.refreshItem(itemId, {
Recursive: true,
ImageRefreshMode: 'FullRefresh',
MetadataRefreshMode: 'FullRefresh',
ReplaceAllImages: false,
ReplaceAllMetadata: true
});
require(['toast'], function (toast) {
toast(globalize.translate('sharedcomponents#RefreshQueued'));
});
}
function show(options) {
return getCommands(options).then(function (commands) {

View file

@ -47,5 +47,7 @@
"FeatureRequiresEmbyPremiere": "This feature requires an active Emby Premiere subscription.",
"Record": "Record",
"Download": "Download",
"Advanced": "Advanced"
"Advanced": "Advanced",
"Refresh": "Refresh",
"RefreshQueued": "Refresh queued"
}