Merge pull request #3472 from thornbill/add-chromecast-unsupported

Add google cast unsupported message and update translations
This commit is contained in:
Bill Thornton 2022-03-02 09:31:12 -05:00 committed by GitHub
commit 6f3f15d5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 6 deletions

View File

@ -90,12 +90,13 @@
.actionSheetTitle {
margin: 0.6em 0 0.7em !important;
padding: 0 0.9em;
padding: 0 0.75rem;
flex-grow: 0;
}
.actionSheetText {
padding: 0 1em;
margin-top: 0;
padding: 0 0.75rem;
flex-grow: 0;
}

View File

@ -3,6 +3,7 @@ import { Events } from 'jellyfin-apiclient';
import browser from '../../scripts/browser';
import loading from '../loading/loading';
import { playbackManager } from '../playback/playbackmanager';
import { pluginManager } from '../pluginManager';
import { appRouter } from '../appRouter';
import globalize from '../../scripts/globalize';
import { appHost } from '../apphost';
@ -130,6 +131,13 @@ export function show(button) {
menuOptions.enableHistory = false;
}
// Add message when Google Cast is not supported
const isChromecastPluginLoaded = !!pluginManager.plugins.find(plugin => plugin.id === 'chromecast');
// TODO: Add other checks for support (Android app, secure context, etc)
if (!isChromecastPluginLoaded) {
menuOptions.text = `(${globalize.translate('GoogleCastUnsupported')})`;
}
actionsheet.show(menuOptions).then(function (id) {
const target = targets.filter(function (t) {
return t.id === id;

View File

@ -76,7 +76,7 @@
"ButtonAudioTracks": "Audio Tracks",
"ButtonBack": "Back",
"ButtonCancel": "Cancel",
"ButtonCast": "Cast the media",
"ButtonCast": "Cast to Device",
"ButtonChangeServer": "Change Server",
"ButtonEditOtherUserPreferences": "Edit this user's profile, image and personal preferences.",
"ButtonForgotPassword": "Forgot Password",
@ -283,6 +283,7 @@
"General": "General",
"Genre": "Genre",
"Genres": "Genres",
"GoogleCastUnsupported": "Google Cast Unsupported",
"GroupBySeries": "Group by series",
"GroupVersions": "Group versions",
"GuestStar": "Guest star",
@ -563,7 +564,7 @@
"LabelCertificatePassword": "Certificate password:",
"LabelCertificatePasswordHelp": "If your certificate requires a password, please enter it here.",
"LabelChannels": "Channels:",
"LabelChromecastVersion": "Chromecast Version",
"LabelChromecastVersion": "Google Cast Version",
"LabelCollection": "Collection:",
"LabelColorPrimaries": "Color primaries:",
"LabelColorSpace": "Color space:",
@ -714,7 +715,7 @@
"LabelMaxAudiobookResume": "Audiobook remaining minutes to resume:",
"LabelMaxAudiobookResumeHelp": "Titles are assumed fully played if stopped when the remaining duration is less than this value.",
"LabelMaxBackdropsPerItem": "Maximum number of backdrops per item:",
"LabelMaxChromecastBitrate": "Chromecast streaming quality:",
"LabelMaxChromecastBitrate": "Google Cast streaming quality:",
"LabelMaxMuxingQueueSize": "Max muxing queue size:",
"LabelMaxMuxingQueueSizeHelp": "Maximum number of packets that can be buffered while waiting for all streams to initialize. Try to increase it if you still meet \"Too many packets buffered for output stream\" error in FFmpeg logs. The recommended value is 2048.",
"LabelMaxParentalRating": "Maximum allowed parental rating:",
@ -1421,7 +1422,7 @@
"StopRecording": "Stop recording",
"Studios": "Studios",
"Subtitle": "Subtitle",
"SubtitleAppearanceSettingsAlsoPassedToCastDevices": "These settings also apply to any Chromecast playback started by this device.",
"SubtitleAppearanceSettingsAlsoPassedToCastDevices": "These settings also apply to any Google Cast playback started by this device.",
"SubtitleAppearanceSettingsDisclaimer": "Following settings do not apply to the graphical subtitles mentioned above or ASS/SSA subtitles that embed their own styles.",
"SubtitleDownloadersHelp": "Enable and rank your preferred subtitle downloaders in order of priority.",
"SubtitleOffset": "Subtitle Offset",