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 2016-04-04 15:55:39 -04:00
parent d1af4dc894
commit 3c2d0cd3a1
8 changed files with 35 additions and 24 deletions

View file

@ -160,8 +160,9 @@ define(['browser'], function (browser) {
return 100000000;
}
return function () {
return function (options) {
options = options || {};
var bitrateSetting = getMaxBitrate();
var videoTestElement = document.createElement('video');
@ -288,7 +289,7 @@ define(['browser'], function (browser) {
});
// 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.mobile) {
if (canPlayMkv && options.supportsAutoPlay) {
profile.TranscodingProfiles.push({
Container: 'mkv',
Type: 'Video',
@ -318,7 +319,8 @@ define(['browser'], function (browser) {
VideoCodec: 'h264',
Context: 'Streaming',
Protocol: 'hls',
ForceLiveStream: true
// Can't use this when autoplay is not supported
ForceLiveStream: options.supportsAutoPlay ? true : false
});
}
@ -469,5 +471,5 @@ define(['browser'], function (browser) {
});
return profile;
}();
};
});