snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
83
globals.d.ts
vendored
Normal file
83
globals.d.ts
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
import { IStore } from "./react/features/app/types";
|
||||
import { IConfig } from "./react/features/base/config/configType";
|
||||
import {
|
||||
DocumentPiPMediaSessionActionHandler,
|
||||
ExtendedMediaSessionAction,
|
||||
ExtendedMediaSessionActionHandler,
|
||||
IDocumentPictureInPicture
|
||||
} from "./react/features/pip/types";
|
||||
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
|
||||
type Mutable<T> = { -readonly [P in keyof T]: T[P] };
|
||||
|
||||
const APP: {
|
||||
store: IStore;
|
||||
UI: any;
|
||||
API: any;
|
||||
conference: any;
|
||||
debugLogs: any;
|
||||
};
|
||||
const interfaceConfig: any;
|
||||
|
||||
interface Navigator {
|
||||
gpu?: {
|
||||
requestAdapter(): Promise<GPUAdapter | null>;
|
||||
};
|
||||
}
|
||||
|
||||
interface GPUAdapter {
|
||||
requestAdapterInfo?(): Promise<{ device: string }>;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
config: IConfig;
|
||||
JITSI_MEET_LITE_SDK?: boolean;
|
||||
interfaceConfig?: any;
|
||||
JitsiMeetJS?: any;
|
||||
MediaStreamTrackGenerator: {
|
||||
new(options: { kind: string }): MediaStreamTrack & {
|
||||
writable: WritableStream<VideoFrame>;
|
||||
};
|
||||
};
|
||||
MediaStreamTrackProcessor: {
|
||||
new(options: { track: MediaStreamTrack; maxBufferSize?: number }): {
|
||||
readable: ReadableStream<VideoFrame>;
|
||||
};
|
||||
};
|
||||
PressureObserver?: any;
|
||||
PressureRecord?: any;
|
||||
ReactNativeWebView?: any;
|
||||
// selenium tests handler
|
||||
_sharedVideoPlayer: any;
|
||||
alwaysOnTop: { api: any };
|
||||
documentPictureInPicture?: IDocumentPictureInPicture;
|
||||
}
|
||||
|
||||
interface MediaSession {
|
||||
setActionHandler(
|
||||
action: ExtendedMediaSessionAction,
|
||||
handler: ExtendedMediaSessionActionHandler | null
|
||||
): void;
|
||||
setActionHandler(
|
||||
action: 'enterpictureinpicture',
|
||||
handler: DocumentPiPMediaSessionActionHandler | null
|
||||
): void;
|
||||
}
|
||||
|
||||
interface Document {
|
||||
mozCancelFullScreen?: Function;
|
||||
webkitExitFullscreen?: Function;
|
||||
}
|
||||
|
||||
const config: IConfig;
|
||||
|
||||
const JitsiMeetJS: any;
|
||||
|
||||
interface HTMLMediaElement {
|
||||
setSinkId: (id: string) => Promise<undefined>;
|
||||
stop: () => void;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user