mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update live tv config page
This commit is contained in:
parent
2737d1f9f9
commit
68bd2a782c
9 changed files with 89 additions and 57 deletions
|
@ -14,12 +14,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.4.208",
|
||||
"_release": "1.4.208",
|
||||
"version": "1.4.209",
|
||||
"_release": "1.4.209",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.4.208",
|
||||
"commit": "e7d9ca4dc8083c9dc63d5add4d73f0179369461a"
|
||||
"tag": "1.4.209",
|
||||
"commit": "e83ed420a7c59b3d413329b046103e001ed784e5"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.1",
|
||||
|
|
|
@ -5,6 +5,10 @@ define(['browser'], function (browser) {
|
|||
return !!(v.canPlayType && v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
|
||||
}
|
||||
|
||||
function canPlayH265() {
|
||||
return false;
|
||||
}
|
||||
|
||||
var _supportsTextTracks;
|
||||
function supportsTextTracks() {
|
||||
|
||||
|
@ -257,7 +261,7 @@ define(['browser'], function (browser) {
|
|||
|
||||
// Only put mp3 first if mkv support is there
|
||||
// Otherwise with HLS and mp3 audio we're seeing some browsers
|
||||
if (videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '') || isEdgeUniversal()) {
|
||||
if (videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '') || isEdgeUniversal() || browser.tizen) {
|
||||
// safari is lying
|
||||
if (!browser.safari) {
|
||||
videoAudioCodecs.push('ac3');
|
||||
|
@ -293,20 +297,29 @@ define(['browser'], function (browser) {
|
|||
//videoAudioCodecs.push('truehd');
|
||||
}
|
||||
|
||||
var mp4VideoCodecs = [];
|
||||
if (canPlayH264()) {
|
||||
mp4VideoCodecs.push('h264');
|
||||
}
|
||||
if (canPlayH265()) {
|
||||
mp4VideoCodecs.push('h265');
|
||||
mp4VideoCodecs.push('hevc');
|
||||
}
|
||||
|
||||
if (mp4VideoCodecs.length) {
|
||||
profile.DirectPlayProfiles.push({
|
||||
Container: 'mp4,m4v',
|
||||
Type: 'Video',
|
||||
VideoCodec: 'h264',
|
||||
VideoCodec: mp4VideoCodecs.join(','),
|
||||
AudioCodec: videoAudioCodecs.join(',')
|
||||
});
|
||||
}
|
||||
|
||||
if (canPlayMkv) {
|
||||
if (canPlayMkv && mp4VideoCodecs.length) {
|
||||
profile.DirectPlayProfiles.push({
|
||||
Container: 'mkv',
|
||||
Type: 'Video',
|
||||
VideoCodec: 'h264',
|
||||
VideoCodec: mp4VideoCodecs.join(','),
|
||||
AudioCodec: videoAudioCodecs.join(',')
|
||||
});
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
}
|
||||
|
||||
.formDialogHeader {
|
||||
padding: .7em .5em;
|
||||
padding: .8em .5em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #101010;
|
||||
background-color: #222326;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -110,11 +110,7 @@ define(['browser', 'layoutManager', 'dom', 'scrollStyles'], function (browser, l
|
|||
// native scroll is a must with touch input
|
||||
// also use native scroll when scrolling vertically in desktop mode - excluding horizontal because the mouse wheel support is choppy at the moment
|
||||
// in cases with firefox, if the smooth scroll api is supported then use that because their implementation is very good
|
||||
if (browser.operaTv) {
|
||||
// no scrolling supported
|
||||
options.enableNativeScroll = false;
|
||||
}
|
||||
else if (isSmoothScrollSupported && browser.firefox) {
|
||||
if (isSmoothScrollSupported && browser.firefox) {
|
||||
// native smooth scroll
|
||||
options.enableNativeScroll = true;
|
||||
}
|
||||
|
|
|
@ -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.10",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.10",
|
||||
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
|
||||
},
|
||||
"_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"
|
||||
}
|
|
@ -27,14 +27,14 @@
|
|||
},
|
||||
"main": "iron-meta.html",
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"_release": "1.1.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.2",
|
||||
"commit": "bae96531b63ea6d4ce982f5592248aea849c0f5a"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-meta"
|
||||
"_originalSource": "polymerelements/iron-meta"
|
||||
}
|
|
@ -32,14 +32,14 @@
|
|||
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
||||
},
|
||||
"private": true,
|
||||
"homepage": "https://github.com/polymer/polymer",
|
||||
"homepage": "https://github.com/Polymer/polymer",
|
||||
"_release": "1.6.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.6.1",
|
||||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||
},
|
||||
"_source": "git://github.com/polymer/polymer.git",
|
||||
"_source": "git://github.com/Polymer/polymer.git",
|
||||
"_target": "^1.1.0",
|
||||
"_originalSource": "polymer/polymer"
|
||||
"_originalSource": "Polymer/polymer"
|
||||
}
|
|
@ -99,30 +99,21 @@ define(['appStorage', 'browser'], function (appStorage, browser) {
|
|||
window.msSpeechRecognition;
|
||||
}
|
||||
|
||||
var appInfo;
|
||||
var version = window.dashboardVersion || '3.0';
|
||||
function supportsFullscreen() {
|
||||
|
||||
return {
|
||||
getWindowState: function () {
|
||||
return document.windowState || 'Normal';
|
||||
},
|
||||
setWindowState: function (state) {
|
||||
alert('setWindowState is not supported and should not be called');
|
||||
},
|
||||
exit: function () {
|
||||
if (browser.tv) {
|
||||
return false;
|
||||
};
|
||||
|
||||
if (browser.tizen) {
|
||||
try {
|
||||
tizen.application.getCurrentApplication().exit();
|
||||
} catch (err) {
|
||||
console.log('error closing application: ' + err);
|
||||
}
|
||||
return;
|
||||
var element = document.documentElement;
|
||||
|
||||
return element.requestFullscreen ||
|
||||
element.mozRequestFullScreen ||
|
||||
element.webkitRequestFullscreen ||
|
||||
element.msRequestFullscreen;
|
||||
}
|
||||
|
||||
window.close();
|
||||
},
|
||||
supports: function (command) {
|
||||
var supportedFeatures = function () {
|
||||
|
||||
var features = [
|
||||
'filedownload',
|
||||
|
@ -155,7 +146,39 @@ define(['appStorage', 'browser'], function (appStorage, browser) {
|
|||
//features.push('sync');
|
||||
}
|
||||
|
||||
return features.indexOf(command.toLowerCase()) != -1;
|
||||
if (supportsFullscreen()) {
|
||||
features.push('fullscreen');
|
||||
}
|
||||
return features;
|
||||
}();
|
||||
|
||||
|
||||
var appInfo;
|
||||
var version = window.dashboardVersion || '3.0';
|
||||
|
||||
return {
|
||||
getWindowState: function () {
|
||||
return document.windowState || 'Normal';
|
||||
},
|
||||
setWindowState: function (state) {
|
||||
alert('setWindowState is not supported and should not be called');
|
||||
},
|
||||
exit: function () {
|
||||
|
||||
if (browser.tizen) {
|
||||
try {
|
||||
tizen.application.getCurrentApplication().exit();
|
||||
} catch (err) {
|
||||
console.log('error closing application: ' + err);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
window.close();
|
||||
},
|
||||
supports: function (command) {
|
||||
|
||||
return supportedFeatures.indexOf(command.toLowerCase()) != -1;
|
||||
},
|
||||
unlockedFeatures: function () {
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<div class="inputContainer">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<div style="flex-grow:1;">
|
||||
<input is="emby-input" id="txtRecordingPath" label="${LabelRecordingPath}" required="required" autocomplete="off" />
|
||||
<input is="emby-input" id="txtRecordingPath" label="${LabelRecordingPath}" autocomplete="off" />
|
||||
</div>
|
||||
<button type="button" is="paper-icon-button-light" id="btnSelectRecordingPath" title="${ButtonSelectDirectory}"><i class="md-icon">search</i></button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue