mirror of
https://github.com/immich-app/immich.git
synced 2025-12-06 21:01:24 -08:00
Compare commits
2 Commits
workflow-u
...
feat/web-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
38b58902fe | ||
|
|
146bf65d02 |
@@ -58,10 +58,6 @@ services:
|
|||||||
IMMICH_THIRD_PARTY_BUG_FEATURE_URL: https://github.com/immich-app/immich/issues
|
IMMICH_THIRD_PARTY_BUG_FEATURE_URL: https://github.com/immich-app/immich/issues
|
||||||
IMMICH_THIRD_PARTY_DOCUMENTATION_URL: https://docs.immich.app
|
IMMICH_THIRD_PARTY_DOCUMENTATION_URL: https://docs.immich.app
|
||||||
IMMICH_THIRD_PARTY_SUPPORT_URL: https://docs.immich.app/community-guides
|
IMMICH_THIRD_PARTY_SUPPORT_URL: https://docs.immich.app/community-guides
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 1048576
|
|
||||||
hard: 1048576
|
|
||||||
ports:
|
ports:
|
||||||
- 9230:9230
|
- 9230:9230
|
||||||
- 9231:9231
|
- 9231:9231
|
||||||
@@ -100,10 +96,6 @@ services:
|
|||||||
- app-node_modules:/usr/src/app/node_modules
|
- app-node_modules:/usr/src/app/node_modules
|
||||||
- sveltekit:/usr/src/app/web/.svelte-kit
|
- sveltekit:/usr/src/app/web/.svelte-kit
|
||||||
- coverage:/usr/src/app/web/coverage
|
- coverage:/usr/src/app/web/coverage
|
||||||
ulimits:
|
|
||||||
nofile:
|
|
||||||
soft: 1048576
|
|
||||||
hard: 1048576
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
immich-server:
|
immich-server:
|
||||||
|
|||||||
@@ -115,12 +115,17 @@ export class GCastDestination implements ICastDestination {
|
|||||||
// build the authenticated media request and send it to the cast device
|
// build the authenticated media request and send it to the cast device
|
||||||
const authenticatedUrl = `${mediaUrl}&sessionKey=${sessionKey}`;
|
const authenticatedUrl = `${mediaUrl}&sessionKey=${sessionKey}`;
|
||||||
const mediaInfo = new chrome.cast.media.MediaInfo(authenticatedUrl, contentType);
|
const mediaInfo = new chrome.cast.media.MediaInfo(authenticatedUrl, contentType);
|
||||||
const request = new chrome.cast.media.LoadRequest(mediaInfo);
|
|
||||||
|
// Create a queue with a single item and set it to repeat
|
||||||
|
const queueItem = new chrome.cast.media.QueueItem(mediaInfo);
|
||||||
|
const queueLoadRequest = new chrome.cast.media.QueueLoadRequest([queueItem]);
|
||||||
|
queueLoadRequest.repeatMode = chrome.cast.media.RepeatMode.SINGLE;
|
||||||
|
|
||||||
const successCallback = this.onMediaDiscovered.bind(this, SESSION_DISCOVERY_CAUSE.LOAD_MEDIA);
|
const successCallback = this.onMediaDiscovered.bind(this, SESSION_DISCOVERY_CAUSE.LOAD_MEDIA);
|
||||||
|
|
||||||
this.currentUrl = mediaUrl;
|
this.currentUrl = mediaUrl;
|
||||||
|
|
||||||
return this.session.loadMedia(request, successCallback, this.onError.bind(this));
|
return this.session.queueLoad(queueLoadRequest, successCallback, this.onError.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user