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

@ -16,15 +16,14 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.2.0",
"_release": "1.2.0",
"version": "1.2.1",
"_release": "1.2.1",
"_resolution": {
"type": "version",
"tag": "1.2.0",
"commit": "7bd7723824e9724b1caf23f4b73509084eae4e46"
"tag": "1.2.1",
"commit": "44c0d907dc06ccc317c008d78b06ae365358560a"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",
"_originalSource": "emby-webcomponents",
"_direct": true
"_originalSource": "emby-webcomponents"
}

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;
}();
};
});

View file

@ -97,9 +97,15 @@ define(['cryptojs-md5'], function () {
}
fileEntry.file(function (file) {
var elapsed = new Date().getTime() - file.lastModifiedDate.getTime();
// 60 days
var maxElapsed = 5184000000;
var lastModifiedDate = file.lastModifiedDate;
if (!lastModifiedDate) {
lastModifiedDate = fileEntry.getMetadata().lastModifiedDate;
}
var elapsed = new Date().getTime() - lastModifiedDate.getTime();
// 45 days
var maxElapsed = 3888000000;
if (elapsed >= maxElapsed) {
var fullPath = fileEntry.fullPath;