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
d1af4dc894
commit
3c2d0cd3a1
8 changed files with 35 additions and 24 deletions
|
@ -16,15 +16,14 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"_release": "1.2.0",
|
"_release": "1.2.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.2.0",
|
"tag": "1.2.1",
|
||||||
"commit": "7bd7723824e9724b1caf23f4b73509084eae4e46"
|
"commit": "44c0d907dc06ccc317c008d78b06ae365358560a"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.0",
|
"_target": "^1.2.0",
|
||||||
"_originalSource": "emby-webcomponents",
|
"_originalSource": "emby-webcomponents"
|
||||||
"_direct": true
|
|
||||||
}
|
}
|
|
@ -160,8 +160,9 @@ define(['browser'], function (browser) {
|
||||||
return 100000000;
|
return 100000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
return function () {
|
return function (options) {
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
var bitrateSetting = getMaxBitrate();
|
var bitrateSetting = getMaxBitrate();
|
||||||
|
|
||||||
var videoTestElement = document.createElement('video');
|
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
|
// 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({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'mkv',
|
Container: 'mkv',
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
|
@ -318,7 +319,8 @@ define(['browser'], function (browser) {
|
||||||
VideoCodec: 'h264',
|
VideoCodec: 'h264',
|
||||||
Context: 'Streaming',
|
Context: 'Streaming',
|
||||||
Protocol: 'hls',
|
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;
|
return profile;
|
||||||
}();
|
};
|
||||||
});
|
});
|
|
@ -97,9 +97,15 @@ define(['cryptojs-md5'], function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
fileEntry.file(function (file) {
|
fileEntry.file(function (file) {
|
||||||
var elapsed = new Date().getTime() - file.lastModifiedDate.getTime();
|
|
||||||
// 60 days
|
var lastModifiedDate = file.lastModifiedDate;
|
||||||
var maxElapsed = 5184000000;
|
if (!lastModifiedDate) {
|
||||||
|
lastModifiedDate = fileEntry.getMetadata().lastModifiedDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elapsed = new Date().getTime() - lastModifiedDate.getTime();
|
||||||
|
// 45 days
|
||||||
|
var maxElapsed = 3888000000;
|
||||||
if (elapsed >= maxElapsed) {
|
if (elapsed >= maxElapsed) {
|
||||||
|
|
||||||
var fullPath = fileEntry.fullPath;
|
var fullPath = fileEntry.fullPath;
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.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",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icon"
|
"_originalSource": "PolymerElements/iron-icon"
|
||||||
}
|
}
|
|
@ -36,7 +36,7 @@
|
||||||
"tag": "v1.3.0",
|
"tag": "v1.3.0",
|
||||||
"commit": "1662093611cda3fd29125cdab94a61d3d88093da"
|
"commit": "1662093611cda3fd29125cdab94a61d3d88093da"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-selector.git",
|
"_source": "git://github.com/PolymerElements/iron-selector.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-selector"
|
"_originalSource": "PolymerElements/iron-selector"
|
||||||
}
|
}
|
|
@ -45,7 +45,7 @@
|
||||||
"tag": "v1.0.11",
|
"tag": "v1.0.11",
|
||||||
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
|
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
"_source": "git://github.com/polymerelements/paper-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-behaviors"
|
"_originalSource": "polymerelements/paper-behaviors"
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||||
"_release": "1.0.5",
|
"_release": "1.0.5",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.5",
|
"tag": "v1.0.5",
|
||||||
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-ripple"
|
"_originalSource": "polymerelements/paper-ripple"
|
||||||
}
|
}
|
|
@ -196,7 +196,11 @@ define(['appSettings', 'userSettings', 'appStorage'], function (appSettings, use
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
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();
|
var bitrateSetting = appSettings.maxStreamingBitrate();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue