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

update components

This commit is contained in:
Luke Pulverenti 2017-01-12 02:53:55 -05:00
parent 6fb6168107
commit dc02d75161
2 changed files with 12 additions and 7 deletions

View file

@ -370,6 +370,16 @@ define(['browser'], function (browser) {
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) {
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
if (canPlayMkv && !browser.tizen && options.enableMkvProgressive !== false) {
profile.TranscodingProfiles.push({
@ -404,7 +409,7 @@ define(['browser'], function (browser) {
VideoCodec: 'h264',
Context: 'Streaming',
MaxAudioChannels: physicalAudioChannels.toString(),
CopyTimestamps: copyTimestamps
CopyTimestamps: true
});
}

View file

@ -972,7 +972,7 @@
self.getPlayerState = function () {
return Promise.resolve(self.getPlayerStateInternal());
return Promise.resolve(self.getPlayerStateInternal() || {});
};
function normalizePrimaryImage(state) {