[wip] now display user's camera
next tricky thing is connecting users
This commit is contained in:
Vendored
+10
-10
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user