[wip] now display user's camera

next tricky thing is connecting users
This commit is contained in:
Peter Harpending
2026-02-24 10:40:43 -08:00
parent 484eea92e4
commit 079009a13e
6 changed files with 192 additions and 184 deletions
+10 -10
View File
@@ -9,14 +9,14 @@
*
* @module
*/
type state = {
whoami: string;
roster: Array<string>;
};
declare let st: state;
declare function main(): Promise<void>;
type ws_msg = ["whoami", string] | ["roster", Array<string>];
declare function handle_ws_msg(message: ws_msg): void;
declare function ws_send_json(ws: WebSocket, x: any): void;
declare function render_state(): void;
declare function nickkk(nick: string): HTMLElement;
/**
* Try to get the user's camera
*
* tries to get screenshare if user camera not available for whatever reason
*
* chimps out if
* - not on https
* - user says no
*/
declare function getUserCamera(): Promise<MediaStream>;