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:
parent
e54e1697fd
commit
5712b78c3e
9 changed files with 72 additions and 20 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue