Skip to content

Commit 7822496

Browse files
authored
feat(web): make google cast opt in (#18514)
* add setting switch this isnt bound to anything yet * make google casting opt-in * doc updates * lint docs * remove unneeded translation items * update mobile openai defs * fix failing test we need to mock user prefs since CastButton uses it
1 parent b054e9d commit 7822496

File tree

19 files changed

+383
-3
lines changed

19 files changed

+383
-3
lines changed

docs/docs/features/casting.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
Immich supports the Google's Cast protocol so that photos and videos can be cast to devices such as a Chromecast and a Nest Hub. This feature is considered experimental and has several important limitations listed below. Currently, this feature is only supported by the web client, support on Android and iOS is planned for the future.
44

5+
## Enable Google Cast Support
6+
7+
Google Cast support is disabled by default. The web UI uses Google-provided scripts and must retreive them from Google servers when the page loads. This is a privacy concern for some and is thus opt-in.
8+
9+
You can enable Google Cast support through `Account Settings > Features > Cast > Google Cast`
10+
11+
<img src={require('./img/gcast-enable.webp').default} width="70%" title='Enable Google Cast Support' />
12+
513
## Limitations
614

715
To use casting with Immich, there are a few prerequisites:
19.3 KB
Loading

i18n/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@
604604
"cannot_undo_this_action": "You cannot undo this action!",
605605
"cannot_update_the_description": "Cannot update the description",
606606
"cast": "Cast",
607+
"cast_description": "Configure available cast destinations",
607608
"change_date": "Change date",
608609
"change_description": "Change description",
609610
"change_display_order": "Change display order",
@@ -1027,6 +1028,8 @@
10271028
"folders": "Folders",
10281029
"folders_feature_description": "Browsing the folder view for the photos and videos on the file system",
10291030
"forward": "Forward",
1031+
"gcast_enabled": "Google Cast",
1032+
"gcast_enabled_description": "This feature loads external resources from Google in order to work.",
10301033
"general": "General",
10311034
"get_help": "Get Help",
10321035
"get_wifiname_error": "Could not get Wi-Fi name. Make sure you have granted the necessary permissions and are connected to a Wi-Fi network",

mobile/openapi/README.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/api.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/api_client.dart

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/model/cast_response.dart

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/model/cast_update.dart

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/model/user_preferences_response_dto.dart

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mobile/openapi/lib/model/user_preferences_update_dto.dart

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)