@vgai/live 0.5.49 → 0.5.51
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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/editor.js +2 -0
- package/dist/recording.d.ts +17 -2
- package/dist/recording.js +6 -2
- package/package.json +3 -3
- package/src/editor.ts +2 -0
- package/src/recording.ts +7 -2
package/dist/editor.js
CHANGED
package/dist/recording.d.ts
CHANGED
|
@@ -19,8 +19,23 @@ export interface GameplayRecordingResult extends GameplayRecordingStarted {
|
|
|
19
19
|
export declare class LiveGameplayRecording {
|
|
20
20
|
#private;
|
|
21
21
|
constructor(client: EditorClient);
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
22
|
+
/** Export the current paused run as silent video; this advances game state.
|
|
23
|
+
* Frames include the initial state. FPS must divide 60; maximum five minutes. */
|
|
24
|
+
export(options: {
|
|
25
|
+
frames: number;
|
|
26
|
+
fps?: number;
|
|
27
|
+
name?: string;
|
|
28
|
+
}): Promise<{
|
|
29
|
+
path: string;
|
|
30
|
+
frames: number;
|
|
31
|
+
fps: number;
|
|
32
|
+
durationMs: number;
|
|
33
|
+
wallMs: number;
|
|
34
|
+
width: number;
|
|
35
|
+
height: number;
|
|
36
|
+
audio: false;
|
|
37
|
+
}>;
|
|
38
|
+
/** Start a real-time recording owned by the page until stop(). */
|
|
24
39
|
start(options?: GameplayRecordingOptions): Promise<GameplayRecordingStarted>;
|
|
25
40
|
/** Finalize the active recording, write it to disk, and return honest media
|
|
26
41
|
* metadata without echoing the large base64 transport payload to stdout. */
|
package/dist/recording.js
CHANGED
|
@@ -21,8 +21,12 @@ export class LiveGameplayRecording {
|
|
|
21
21
|
constructor(client) {
|
|
22
22
|
this.#client = client;
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
24
|
+
/** Export the current paused run as silent video; this advances game state.
|
|
25
|
+
* Frames include the initial state. FPS must divide 60; maximum five minutes. */
|
|
26
|
+
async export(options) {
|
|
27
|
+
return this.#client.exportGameplayVideo(options);
|
|
28
|
+
}
|
|
29
|
+
/** Start a real-time recording owned by the page until stop(). */
|
|
26
30
|
async start(options = {}) {
|
|
27
31
|
return this.#client.startGameplayRecording(options);
|
|
28
32
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vgai/live",
|
|
3
3
|
"author": "Volter AI, Inc.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.51",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"prepack": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vgai/editor-sdk": "0.5.
|
|
36
|
-
"@vgai/sdk": "0.5.
|
|
35
|
+
"@vgai/editor-sdk": "0.5.51",
|
|
36
|
+
"@vgai/sdk": "0.5.51"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@playwright/test": ">=1.58.2 <2"
|
package/src/editor.ts
CHANGED
package/src/recording.ts
CHANGED
|
@@ -38,8 +38,13 @@ export class LiveGameplayRecording {
|
|
|
38
38
|
this.#client = client;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
41
|
+
/** Export the current paused run as silent video; this advances game state.
|
|
42
|
+
* Frames include the initial state. FPS must divide 60; maximum five minutes. */
|
|
43
|
+
async export(options: { frames: number; fps?: number; name?: string }) {
|
|
44
|
+
return this.#client.exportGameplayVideo(options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Start a real-time recording owned by the page until stop(). */
|
|
43
48
|
async start(options: GameplayRecordingOptions = {}): Promise<GameplayRecordingStarted> {
|
|
44
49
|
return this.#client.startGameplayRecording(options);
|
|
45
50
|
}
|