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;

View File

@ -32,14 +32,14 @@
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"homepage": "https://github.com/polymerelements/iron-icon",
"homepage": "https://github.com/PolymerElements/iron-icon",
"_release": "1.0.8",
"_resolution": {
"type": "version",
"tag": "v1.0.8",
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
},
"_source": "git://github.com/polymerelements/iron-icon.git",
"_source": "git://github.com/PolymerElements/iron-icon.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-icon"
"_originalSource": "PolymerElements/iron-icon"
}

View File

@ -36,7 +36,7 @@
"tag": "v1.3.0",
"commit": "1662093611cda3fd29125cdab94a61d3d88093da"
},
"_source": "git://github.com/polymerelements/iron-selector.git",
"_source": "git://github.com/PolymerElements/iron-selector.git",
"_target": "^1.0.0",
"_originalSource": "polymerelements/iron-selector"
"_originalSource": "PolymerElements/iron-selector"
}

View File

@ -45,7 +45,7 @@
"tag": "v1.0.11",
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
},
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
"_source": "git://github.com/polymerelements/paper-behaviors.git",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/paper-behaviors"
"_originalSource": "polymerelements/paper-behaviors"
}

View File

@ -32,14 +32,14 @@
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
},
"ignore": [],
"homepage": "https://github.com/PolymerElements/paper-ripple",
"homepage": "https://github.com/polymerelements/paper-ripple",
"_release": "1.0.5",
"_resolution": {
"type": "version",
"tag": "v1.0.5",
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
},
"_source": "git://github.com/PolymerElements/paper-ripple.git",
"_source": "git://github.com/polymerelements/paper-ripple.git",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/paper-ripple"
"_originalSource": "polymerelements/paper-ripple"
}

View File

@ -196,7 +196,11 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
return new Promise(function (resolve, reject) {
require(['browserdeviceprofile', 'qualityoptions'], function (profile, qualityoptions) {
require(['browserdeviceprofile', 'qualityoptions'], function (profileBuilder, qualityoptions) {
var profile = profileBuilder({
supportsAutoPlay: !browserInfo.mobile || AppInfo.isNativeApp
});
var bitrateSetting = appSettings.maxStreamingBitrate();