@vestra-player/sdk 1.5.31 → 1.5.34
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/CHANGELOG.md +23 -0
- package/dist/capabilities.d.ts +6 -0
- package/dist/capabilities.js +4 -0
- package/dist/commands.d.ts +18 -0
- package/dist/commands.js +14 -0
- package/dist/i18n.d.ts +9 -0
- package/dist/i18n.js +9 -0
- package/dist/palettes.d.ts +2 -0
- package/dist/palettes.js +2 -0
- package/dist/player-runtime.d.ts +1 -0
- package/dist/player-runtime.js +1 -0
- package/dist/plugin/bindings.d.ts +2 -0
- package/dist/plugin/bindings.js +2 -0
- package/dist/plugin/osd.d.ts +2 -0
- package/dist/plugin/osd.js +2 -0
- package/dist/plugin/services.d.ts +4 -0
- package/dist/plugin/services.js +4 -0
- package/dist/plugin/subtitles.d.ts +59 -0
- package/dist/plugin/subtitles.js +70 -4
- package/dist/plugin/testing.d.ts +538 -12
- package/dist/plugin/testing.js +458 -23
- package/dist/plugin/types.d.ts +1524 -64
- package/dist/plugin/values.d.ts +5 -0
- package/dist/plugin/values.js +5 -0
- package/dist/processing.d.ts +6 -0
- package/dist/source-resolvers.d.ts +3 -0
- package/dist/subtitles.d.ts +3 -0
- package/dist/wire.d.ts +16 -1
- package/dist/wire.js +10 -0
- package/llms-full.txt +1489 -55
- package/llms.txt +22 -22
- package/package.json +1 -1
package/dist/plugin/values.d.ts
CHANGED
|
@@ -50,6 +50,8 @@ import type { Json } from "../wire.ts";
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* @since 1.5.10
|
|
53
|
+
*
|
|
54
|
+
* @category Testing
|
|
53
55
|
*/
|
|
54
56
|
export declare const UI_VALUE_LIMITS: {
|
|
55
57
|
/** Nesting depth; the value itself is depth 0 (8). */
|
|
@@ -74,6 +76,9 @@ export declare const UI_VALUE_LIMITS: {
|
|
|
74
76
|
* The player's runtime image limits (`src/host/src/ui/ui_image.rs`): a file's
|
|
75
77
|
* bytes and sides, the decoded pixels each plugin caches, and (SDK 1.5.19,
|
|
76
78
|
* player 0.5.1) the decoded pixels the nested images of one view may show.
|
|
79
|
+
*
|
|
80
|
+
* @since 1.5.19
|
|
81
|
+
* @category Testing
|
|
77
82
|
*/
|
|
78
83
|
export declare const IMAGE_LIMITS: Readonly<{
|
|
79
84
|
/** The largest image file the player reads, in bytes. */
|
package/dist/plugin/values.js
CHANGED
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
* ```
|
|
49
49
|
*
|
|
50
50
|
* @since 1.5.10
|
|
51
|
+
*
|
|
52
|
+
* @category Testing
|
|
51
53
|
*/
|
|
52
54
|
export const UI_VALUE_LIMITS = {
|
|
53
55
|
/** Nesting depth; the value itself is depth 0 (8). */
|
|
@@ -82,6 +84,9 @@ function documentText(value) {
|
|
|
82
84
|
* The player's runtime image limits (`src/host/src/ui/ui_image.rs`): a file's
|
|
83
85
|
* bytes and sides, the decoded pixels each plugin caches, and (SDK 1.5.19,
|
|
84
86
|
* player 0.5.1) the decoded pixels the nested images of one view may show.
|
|
87
|
+
*
|
|
88
|
+
* @since 1.5.19
|
|
89
|
+
* @category Testing
|
|
85
90
|
*/
|
|
86
91
|
export const IMAGE_LIMITS = Object.freeze({
|
|
87
92
|
/** The largest image file the player reads, in bytes. */
|
package/dist/processing.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ import type { Transport } from "./wire.ts";
|
|
|
29
29
|
* ];
|
|
30
30
|
* plugin.video.filter("picture").set(chain);
|
|
31
31
|
* ```
|
|
32
|
+
*
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
* @category Processing
|
|
32
35
|
*/
|
|
33
36
|
export type VideoNode =
|
|
34
37
|
/** FFmpeg `eq`; every field is live. */
|
|
@@ -181,6 +184,9 @@ export type VideoNode =
|
|
|
181
184
|
* ],
|
|
182
185
|
* });
|
|
183
186
|
* ```
|
|
187
|
+
*
|
|
188
|
+
* @since 1.0.0
|
|
189
|
+
* @category Processing
|
|
184
190
|
*/
|
|
185
191
|
export type AudioNode =
|
|
186
192
|
/** FFmpeg `volume`. */
|
package/dist/subtitles.d.ts
CHANGED
package/dist/wire.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export declare const API_VERSION: "vestra/1";
|
|
|
6
6
|
/**
|
|
7
7
|
* A JSON value: what crosses the wire to the player. Slint property values,
|
|
8
8
|
* callback arguments and protocol parameters are all `Json`.
|
|
9
|
+
*
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
* @category Plugin
|
|
9
12
|
*/
|
|
10
13
|
export type Json = null | boolean | number | string | Json[] | {
|
|
11
14
|
[key: string]: Json;
|
|
@@ -92,11 +95,21 @@ export interface UiCallback {
|
|
|
92
95
|
* host.reset("clipboard.writeText"); // writes succeed again
|
|
93
96
|
* await stop();
|
|
94
97
|
* ```
|
|
98
|
+
*
|
|
99
|
+
* @remarks
|
|
100
|
+
* A definite refusal, as opposed to a lost reply: the SDK does not retry
|
|
101
|
+
* it, and the plugin sees an `Error` with `code`.
|
|
102
|
+
*
|
|
103
|
+
* @capability None.
|
|
104
|
+
* @since 1.0.0
|
|
105
|
+
* @category Testing
|
|
95
106
|
*/
|
|
96
107
|
export declare class HostError extends Error {
|
|
97
108
|
/** The stable error code, e.g. `"invalid"`, `"stale"`, `"unavailable"`. */
|
|
98
109
|
code: string;
|
|
99
110
|
/**
|
|
111
|
+
* A refusal with this code, as the player would send it.
|
|
112
|
+
*
|
|
100
113
|
* @param code - The stable error code the caller will see as `error.code`.
|
|
101
114
|
* @param message - Human-readable detail (not for branching on).
|
|
102
115
|
*/
|
|
@@ -284,7 +297,7 @@ export interface LocalServices {
|
|
|
284
297
|
signal: AbortSignal;
|
|
285
298
|
}): Promise<Uint8Array>;
|
|
286
299
|
}
|
|
287
|
-
/** `app.system`: the operating system and the
|
|
300
|
+
/** `app.system`: the operating system, the displays and the renderer. */
|
|
288
301
|
export interface WireSystemInfo {
|
|
289
302
|
os: "macos" | "windows" | "linux" | "other";
|
|
290
303
|
name: string;
|
|
@@ -300,6 +313,8 @@ export interface WireSystemInfo {
|
|
|
300
313
|
refreshRate: number | null;
|
|
301
314
|
primary: boolean;
|
|
302
315
|
}[];
|
|
316
|
+
/** Player 0.5.12; older players leave it out. */
|
|
317
|
+
rendering?: "gpu" | "software";
|
|
303
318
|
}
|
|
304
319
|
/**
|
|
305
320
|
* Template arguments on the wire (`osd.show`, `osd.panel`, `dialogs.confirm`,
|
package/dist/wire.js
CHANGED
|
@@ -52,11 +52,21 @@ export const API_VERSION = "vestra/1";
|
|
|
52
52
|
* host.reset("clipboard.writeText"); // writes succeed again
|
|
53
53
|
* await stop();
|
|
54
54
|
* ```
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* A definite refusal, as opposed to a lost reply: the SDK does not retry
|
|
58
|
+
* it, and the plugin sees an `Error` with `code`.
|
|
59
|
+
*
|
|
60
|
+
* @capability None.
|
|
61
|
+
* @since 1.0.0
|
|
62
|
+
* @category Testing
|
|
55
63
|
*/
|
|
56
64
|
export class HostError extends Error {
|
|
57
65
|
/** The stable error code, e.g. `"invalid"`, `"stale"`, `"unavailable"`. */
|
|
58
66
|
code;
|
|
59
67
|
/**
|
|
68
|
+
* A refusal with this code, as the player would send it.
|
|
69
|
+
*
|
|
60
70
|
* @param code - The stable error code the caller will see as `error.code`.
|
|
61
71
|
* @param message - Human-readable detail (not for branching on).
|
|
62
72
|
*/
|