@wvdsh/api 0.1.98 → 0.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -196,6 +196,10 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
196
196
|
readonly END_SESSION: "EndSession";
|
|
197
197
|
readonly TRIGGER_PAYWALL: "TriggerPaywall";
|
|
198
198
|
readonly LINK_COPIED: "LinkCopied";
|
|
199
|
+
readonly RECORDING_CHANGED: "RecordingChanged";
|
|
200
|
+
readonly RECORDING_COMPLETE: "RecordingComplete";
|
|
201
|
+
readonly RECORDING_HOTKEY_CHANGED: "RecordingHotkeyChanged";
|
|
202
|
+
readonly RECORDING_HOTKEY_PRESSED: "RecordingHotkeyPressed";
|
|
199
203
|
};
|
|
200
204
|
export declare const GAME_ISOLATION_ERROR_PATTERN: RegExp;
|
|
201
205
|
export declare const SERVICE_WORKER_MESSAGE_TYPE: {
|
|
@@ -228,8 +232,24 @@ export interface SDKConfig {
|
|
|
228
232
|
parentOrigin: string;
|
|
229
233
|
initialVolume: number;
|
|
230
234
|
pageViewId?: string;
|
|
235
|
+
recordingHotkey?: string;
|
|
231
236
|
}
|
|
232
237
|
export type IframeResponseMessageTypes = typeof IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK | typeof IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT | typeof IFRAME_MESSAGE_TYPE.GET_GAMEPLAY_ATTRIBUTION | typeof IFRAME_MESSAGE_TYPE.SET_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.TOGGLE_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.SET_MUTE | typeof IFRAME_MESSAGE_TYPE.TOGGLE_MUTE | typeof IFRAME_MESSAGE_TYPE.TRIGGER_PAYWALL;
|
|
238
|
+
export type RecordingCompletePayload = {
|
|
239
|
+
success: true;
|
|
240
|
+
recordingId?: number;
|
|
241
|
+
blob: Blob;
|
|
242
|
+
mimeType: string;
|
|
243
|
+
width: number;
|
|
244
|
+
height: number;
|
|
245
|
+
durationMs: number;
|
|
246
|
+
} | {
|
|
247
|
+
success: false;
|
|
248
|
+
recordingId?: number;
|
|
249
|
+
error: string;
|
|
250
|
+
reason?: RecordingFailureReason;
|
|
251
|
+
};
|
|
252
|
+
export type RecordingFailureReason = 'no-canvas';
|
|
233
253
|
export type IFrameEventPayloadMap = {
|
|
234
254
|
[IFRAME_MESSAGE_TYPE.FULLSCREEN_CHANGED]: {
|
|
235
255
|
isFullscreen: boolean;
|
|
@@ -274,6 +294,15 @@ export type IFrameEventPayloadMap = {
|
|
|
274
294
|
reason?: 'auth';
|
|
275
295
|
};
|
|
276
296
|
[IFRAME_MESSAGE_TYPE.FRAME_BOOTED]: void;
|
|
297
|
+
[IFRAME_MESSAGE_TYPE.RECORDING_CHANGED]: {
|
|
298
|
+
isRecording: boolean;
|
|
299
|
+
recordingId?: number;
|
|
300
|
+
};
|
|
301
|
+
[IFRAME_MESSAGE_TYPE.RECORDING_COMPLETE]: RecordingCompletePayload;
|
|
302
|
+
[IFRAME_MESSAGE_TYPE.RECORDING_HOTKEY_CHANGED]: {
|
|
303
|
+
hotkey: string | null;
|
|
304
|
+
};
|
|
305
|
+
[IFRAME_MESSAGE_TYPE.RECORDING_HOTKEY_PRESSED]: void;
|
|
277
306
|
};
|
|
278
307
|
export declare const LAUNCH_PARAM_PREFIX = "wvdsh_";
|
|
279
308
|
export interface GameLaunchParams {
|
|
@@ -169,7 +169,11 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
169
169
|
GAMEPLAY_JWT_READY: 'GameplayJwtReady',
|
|
170
170
|
END_SESSION: 'EndSession',
|
|
171
171
|
TRIGGER_PAYWALL: 'TriggerPaywall',
|
|
172
|
-
LINK_COPIED: 'LinkCopied'
|
|
172
|
+
LINK_COPIED: 'LinkCopied',
|
|
173
|
+
RECORDING_CHANGED: 'RecordingChanged',
|
|
174
|
+
RECORDING_COMPLETE: 'RecordingComplete',
|
|
175
|
+
RECORDING_HOTKEY_CHANGED: 'RecordingHotkeyChanged',
|
|
176
|
+
RECORDING_HOTKEY_PRESSED: 'RecordingHotkeyPressed'
|
|
173
177
|
};
|
|
174
178
|
// Errors that mean a threaded build ran without cross-origin isolation, only meaningful when crossOriginIsolated is false.
|
|
175
179
|
// Godot: "SharedArrayBuffer is not defined" / "Cross Origin Isolation"; Unity: "does not support multithreading";
|