setup electron multi-window architecture (#102)
* prototype with two windows * use deps in separate window render process * enhance autoplay into desktop overlay * fix: autoplay window not applying tailwind styles
This commit was merged in pull request #102.
This commit is contained in:
Vendored
+10
@@ -1,4 +1,5 @@
|
||||
import type { LinkMetadata } from './lib/link-metadata';
|
||||
import type { AutoplayPayload } from './lib/autoplay-ipc';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -7,6 +8,15 @@ declare global {
|
||||
maximize: () => void;
|
||||
fullscreen: () => void;
|
||||
close: () => void;
|
||||
openHuddle: () => void;
|
||||
closeHuddle: () => void;
|
||||
};
|
||||
electronAutoplay: {
|
||||
play: (payload: AutoplayPayload) => void;
|
||||
dismiss: () => void;
|
||||
navigate: (data: { networkId: string; streamId: string }) => void;
|
||||
onPlay: (callback: (payload: AutoplayPayload) => void) => () => void;
|
||||
onNavigate: (callback: (data: { networkId: string; streamId: string }) => void) => () => void;
|
||||
};
|
||||
electronLink: {
|
||||
fetchMetadata: (url: string) => Promise<LinkMetadata | null>;
|
||||
|
||||
Reference in New Issue
Block a user