mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
4e86a39f8c
commit
28f378f8db
19 changed files with 284 additions and 64 deletions
|
@ -1359,7 +1359,8 @@ var Dashboard = {
|
|||
},
|
||||
|
||||
capabilities: function () {
|
||||
return {
|
||||
|
||||
var caps = {
|
||||
PlayableMediaTypes: "Audio,Video",
|
||||
|
||||
SupportedCommands: Dashboard.getSupportedRemoteCommands().join(','),
|
||||
|
@ -1367,6 +1368,8 @@ var Dashboard = {
|
|||
SupportsMediaControl: true,
|
||||
SupportedLiveMediaTypes: ['Audio', 'Video']
|
||||
};
|
||||
|
||||
return caps;
|
||||
},
|
||||
|
||||
getDefaultImageQuality: function (imageType) {
|
||||
|
@ -1600,12 +1603,10 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
//localStorage.clear();
|
||||
function createConnectionManager(appInfo) {
|
||||
function createConnectionManager(appInfo, capabilities) {
|
||||
|
||||
var credentialProvider = new MediaBrowser.CredentialProvider();
|
||||
|
||||
var capabilities = Dashboard.capabilities();
|
||||
|
||||
window.ConnectionManager = new MediaBrowser.ConnectionManager(Logger, credentialProvider, appInfo.appName, appInfo.appVersion, appInfo.deviceName, appInfo.deviceId, capabilities);
|
||||
|
||||
$(ConnectionManager).on('apiclientcreated', function (e, newApiClient) {
|
||||
|
@ -1713,6 +1714,10 @@ var AppInfo = {};
|
|||
$(document).addClass('nativeApp');
|
||||
}
|
||||
|
||||
if (AppInfo.enableBackButton) {
|
||||
$(document.body).addClass('enableBackButton');
|
||||
}
|
||||
|
||||
var videoPlayerHtml = '<div id="mediaPlayer" data-theme="b" class="ui-bar-b" style="display: none;">';
|
||||
|
||||
videoPlayerHtml += '<div class="videoBackdrop">';
|
||||
|
@ -1823,6 +1828,10 @@ var AppInfo = {};
|
|||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
requirejs(['thirdparty/cordova/connectsdk', 'thirdparty/cordova/remotecontrols']);
|
||||
|
||||
if ($.browser.android) {
|
||||
requirejs(['thirdparty/cordova/android/immersive']);
|
||||
}
|
||||
} else {
|
||||
if ($.browser.chrome) {
|
||||
requirejs(['scripts/chromecast']);
|
||||
|
@ -1830,7 +1839,7 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
function init(deferred, appName, deviceId, deviceName, resolveOnReady) {
|
||||
function init(deferred, capabilities, appName, deviceId, deviceName, resolveOnReady) {
|
||||
|
||||
requirejs.config({
|
||||
map: {
|
||||
|
@ -1850,12 +1859,14 @@ var AppInfo = {};
|
|||
|
||||
var appInfo = Dashboard.getAppInfo(appName, deviceId, deviceName);
|
||||
|
||||
createConnectionManager(appInfo);
|
||||
createConnectionManager(appInfo, capabilities);
|
||||
|
||||
if (!resolveOnReady) {
|
||||
|
||||
Dashboard.initPromiseDone = true;
|
||||
deferred.resolve();
|
||||
}
|
||||
|
||||
$(function () {
|
||||
onDocumentReady();
|
||||
if (resolveOnReady) {
|
||||
|
@ -1867,9 +1878,19 @@ var AppInfo = {};
|
|||
|
||||
function initCordovaWithDeviceId(deferred, deviceId) {
|
||||
|
||||
var screenWidth = Math.max(screen.height, screen.width);
|
||||
initCordovaWithDeviceProfile(deferred, deviceId, MediaPlayer.getDeviceProfile(screenWidth));
|
||||
}
|
||||
|
||||
function initCordovaWithDeviceProfile(deferred, deviceId, deviceProfile) {
|
||||
|
||||
requirejs(['thirdparty/cordova/imagestore.js']);
|
||||
|
||||
init(deferred, "Emby Mobile", deviceId, device.model, true);
|
||||
var capablities = Dashboard.capabilities();
|
||||
|
||||
capablities.DeviceProfile = deviceProfile;
|
||||
|
||||
init(deferred, capablities, "Emby Mobile", deviceId, device.model, true);
|
||||
}
|
||||
|
||||
function initCordova(deferred) {
|
||||
|
@ -1894,7 +1915,7 @@ var AppInfo = {};
|
|||
if (Dashboard.isRunningInCordova()) {
|
||||
initCordova(initDeferred);
|
||||
} else {
|
||||
init(initDeferred);
|
||||
init(initDeferred, Dashboard.capabilities());
|
||||
}
|
||||
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue