MCPcopy
hub / github.com/immich-app/immich / ICastDestination

Interface ICastDestination

web/src/lib/managers/cast-manager.svelte.ts:18–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18export interface ICastDestination {
19 initialize(): Promise<boolean>; // returns if the cast destination can be used
20 type: CastDestinationType; // type of cast destination
21
22 isAvailable: boolean; // can we use the cast destination
23 isConnected: boolean; // is the cast destination actively sharing
24
25 currentTime: number | null; // current seek time the player is at
26 duration: number | null; // duration of media
27
28 receiverName: string | null; // name of the cast destination
29 castState: CastState; // current state of the cast destination
30
31 loadMedia(mediaUrl: string, sessionKey: string, reload: boolean): Promise<void>; // load media to the cast destination
32
33 // remote player controls
34 play(): void;
35 pause(): void;
36 seekTo(time: number): void;
37 disconnect(): void;
38}
39
40class CastManager {
41 private castDestinations = $state<ICastDestination[]>([]);

Callers 17

initializeMethod · 0.65
loadMediaMethod · 0.65
playMethod · 0.65
playMethod · 0.65
initMethod · 0.65
runCommandLegacyMethod · 0.65
updateMethod · 0.65
pauseMethod · 0.65
spawnDuplexStreamMethod · 0.65
pauseMethod · 0.65
pauseMethod · 0.65
seekToMethod · 0.65

Implementers 2

GCastDestinationweb/src/lib/utils/cast/gcast-destinati
CastManagerweb/src/lib/managers/cast-manager.svel

Calls

no outgoing calls

Tested by

no test coverage detected