mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
6fb6168107
commit
dc02d75161
2 changed files with 12 additions and 7 deletions
|
@ -370,6 +370,16 @@ define(['browser'], function (browser) {
|
||||||
|
|
||||||
profile.TranscodingProfiles = [];
|
profile.TranscodingProfiles = [];
|
||||||
|
|
||||||
|
if (canPlayNativeHls() && options.enableHlsAudio) {
|
||||||
|
profile.TranscodingProfiles.push({
|
||||||
|
Container: 'ts',
|
||||||
|
Type: 'Audio',
|
||||||
|
AudioCodec: 'aac',
|
||||||
|
Context: 'Streaming',
|
||||||
|
Protocol: 'hls'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
['opus', 'mp3', 'aac', 'wav'].filter(canPlayAudioFormat).forEach(function (audioFormat) {
|
['opus', 'mp3', 'aac', 'wav'].filter(canPlayAudioFormat).forEach(function (audioFormat) {
|
||||||
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
|
@ -390,11 +400,6 @@ define(['browser'], function (browser) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
var copyTimestamps = false;
|
|
||||||
if (browser.chrome) {
|
|
||||||
copyTimestamps = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Can't use mkv on mobile because we have to use the native player controls and they won't be able to seek it
|
// Can't use mkv on mobile because we have to use the native player controls and they won't be able to seek it
|
||||||
if (canPlayMkv && !browser.tizen && options.enableMkvProgressive !== false) {
|
if (canPlayMkv && !browser.tizen && options.enableMkvProgressive !== false) {
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
|
@ -404,7 +409,7 @@ define(['browser'], function (browser) {
|
||||||
VideoCodec: 'h264',
|
VideoCodec: 'h264',
|
||||||
Context: 'Streaming',
|
Context: 'Streaming',
|
||||||
MaxAudioChannels: physicalAudioChannels.toString(),
|
MaxAudioChannels: physicalAudioChannels.toString(),
|
||||||
CopyTimestamps: copyTimestamps
|
CopyTimestamps: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -972,7 +972,7 @@
|
||||||
|
|
||||||
self.getPlayerState = function () {
|
self.getPlayerState = function () {
|
||||||
|
|
||||||
return Promise.resolve(self.getPlayerStateInternal());
|
return Promise.resolve(self.getPlayerStateInternal() || {});
|
||||||
};
|
};
|
||||||
|
|
||||||
function normalizePrimaryImage(state) {
|
function normalizePrimaryImage(state) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue