@vestra-player/sdk 1.8.0 → 1.9.0

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +2 -2
  3. package/bin/vestra-plugin.mjs +11 -100
  4. package/capability-scan.json +3 -1
  5. package/dist/api-requests.d.ts +11 -36
  6. package/dist/api-requests.js +18 -47
  7. package/dist/capability-scan.d.ts +1 -1
  8. package/dist/capability-scan.js +8 -9
  9. package/dist/docs-tree.json.gz +0 -0
  10. package/dist/docs.d.ts +1 -1
  11. package/dist/docs.js +1 -1
  12. package/dist/index.d.ts +4 -5
  13. package/dist/manifest.d.ts +5 -0
  14. package/dist/manifest.js +9 -24
  15. package/dist/member-uses.d.ts +61 -0
  16. package/dist/member-uses.js +160 -0
  17. package/dist/player-runtime.d.ts +1 -2
  18. package/dist/player-runtime.js +1 -2
  19. package/dist/plugin/appearance.d.ts +1 -1
  20. package/dist/plugin/appearance.js +2 -2
  21. package/dist/plugin/bindings.d.ts +1 -1
  22. package/dist/plugin/bindings.js +2 -2
  23. package/dist/plugin/commands.js +1 -12
  24. package/dist/plugin/connection.d.ts +26 -7
  25. package/dist/plugin/connection.js +68 -36
  26. package/dist/plugin/drops.js +1 -1
  27. package/dist/plugin/index.js +9 -15
  28. package/dist/plugin/media.js +0 -12
  29. package/dist/plugin/mpv.js +0 -7
  30. package/dist/plugin/packages.js +1 -2
  31. package/dist/plugin/player/events.d.ts +4 -3
  32. package/dist/plugin/player/events.js +7 -6
  33. package/dist/plugin/player.d.ts +21 -13
  34. package/dist/plugin/player.js +56 -21
  35. package/dist/plugin/services.d.ts +4 -4
  36. package/dist/plugin/services.js +7 -29
  37. package/dist/plugin/settings.js +1 -1
  38. package/dist/plugin/shaders.js +0 -2
  39. package/dist/plugin/stream.d.ts +2 -1
  40. package/dist/plugin/stream.js +2 -2
  41. package/dist/plugin/testing/commands.d.ts +3 -10
  42. package/dist/plugin/testing/commands.js +6 -15
  43. package/dist/plugin/testing/index.d.ts +26 -116
  44. package/dist/plugin/testing/index.js +30 -104
  45. package/dist/plugin/testing/processing.js +1 -1
  46. package/dist/plugin/testing/services.js +0 -1
  47. package/dist/plugin/timeline.d.ts +2 -3
  48. package/dist/plugin/timeline.js +4 -8
  49. package/dist/plugin/types/base.d.ts +40 -86
  50. package/dist/plugin/types/commands.d.ts +10 -67
  51. package/dist/plugin/types/packages.d.ts +17 -55
  52. package/dist/plugin/types/playback.d.ts +126 -144
  53. package/dist/plugin/types/plugin-wire.d.ts +6 -36
  54. package/dist/plugin/types/processing.d.ts +10 -49
  55. package/dist/plugin/types/services.d.ts +11 -70
  56. package/dist/plugin/types/snapshots.d.ts +7 -60
  57. package/dist/plugin/types/sources.d.ts +2 -11
  58. package/dist/plugin/types/subtitles.d.ts +5 -26
  59. package/dist/plugin/types/ui-content.d.ts +1 -16
  60. package/dist/plugin/types/ui-layout.d.ts +53 -79
  61. package/dist/plugin/types/ui-locale.d.ts +5 -23
  62. package/dist/plugin/types/ui-shell.d.ts +13 -59
  63. package/dist/plugin/view/layout.js +1 -1
  64. package/dist/plugin/view.js +0 -2
  65. package/dist/plugin/window.d.ts +1 -1
  66. package/dist/plugin/window.js +1 -1
  67. package/dist/plugin/wire-facade.js +1 -2
  68. package/dist/processing.d.ts +2 -3
  69. package/dist/protocol.d.ts +14 -0
  70. package/dist/protocol.js +14 -0
  71. package/dist/request-queue.js +1 -1
  72. package/dist/subtitles.d.ts +1 -1
  73. package/dist/ts-plugin.d.ts +8 -15
  74. package/dist/ts-plugin.js +3 -141
  75. package/dist/wire.d.ts +7 -12
  76. package/dist/wire.js +6 -8
  77. package/llms.txt +4 -4
  78. package/package.json +1 -2
  79. package/dist/capabilities.d.ts +0 -107
  80. package/dist/capabilities.js +0 -69
  81. package/dist/capability-check.d.ts +0 -176
  82. package/dist/capability-check.js +0 -461
  83. package/dist/capability-rules.d.ts +0 -125
  84. package/dist/capability-rules.js +0 -192
  85. package/dist/host-capabilities.d.ts +0 -10
  86. package/dist/host-capabilities.js +0 -492
@@ -28,11 +28,7 @@ import type { View } from "./ui-content.ts";
28
28
  * and names the listener in its log), `view(v)` sends one write per property
29
29
  * at a time and splits large ones, and `commands.register` waits during
30
30
  * activation like `commands.add`. What it leaves to the plugin: the
31
- * parameters' shape, the value limits, revisions of `request`, retries. The
32
- * player still checks every capability, so a method needs the capability
33
- * the player's table gives it (`vestra-plugin check` reads a literal method
34
- * name and says which one; a method name it cannot read is reported as
35
- * unchecked).
31
+ * parameters' shape, the value limits, revisions of `request`, retries.
36
32
  *
37
33
  * The [Tutorial](../../../docs/tutorial/index.md) shows `bind()` (the
38
34
  * default), {@link Player.on} with {@link View.set}, and `plugin.wire`
@@ -53,8 +49,6 @@ import type { View } from "./ui-content.ts";
53
49
  * });
54
50
  * ```
55
51
  *
56
- * @capability That of each method and event: the player's capability
57
- * table, as `vestra-plugin check` reports it.
58
52
  * @experimental
59
53
  * @since 1.7.0
60
54
  * @category Plugin
@@ -66,10 +60,8 @@ export interface Wire {
66
60
  * @remarks
67
61
  * Experimental: the wire protocol is not semver; this member changes with
68
62
  * versions. `method` and `params` go to the player as given; the answer is
69
- * the player's result, typed by the caller (`T`). The player checks the
70
- * capability the method needs and refuses with `capability` when the manifest
71
- * does not declare it; its other refusals arrive with their own codes
72
- * (`invalid`, `missing`, `stale`…).
63
+ * the player's result, typed by the caller (`T`). The player's refusals
64
+ * arrive with their own codes (`invalid`, `missing`, `stale`…).
73
65
  *
74
66
  * Nothing of the SDK's sits between: no value limits, no `seq` or
75
67
  * revision, no retry after a lost reply, no wait during activation. A
@@ -95,18 +87,13 @@ export interface Wire {
95
87
  * `events.subscribe` or `events.unsubscribe` of a {@link HostEvent},
96
88
  * or `events.subscribe` of another event without `why` (a non-empty
97
89
  * list of strings) or `mirror: true`.
98
- * @throws `capability` (rejects) The manifest does not declare the
99
- * capability the method needs.
100
90
  * @throws `unsupported` (rejects) The player does not know the method.
101
91
  * @throws `disabled` (rejects) The plugin is stopping.
102
92
  *
103
- * @capability That of the method, from the player's capability table:
104
- * `vestra-plugin check` names it for a literal method name.
105
- *
106
93
  * @example Write a panel property without the SDK
107
94
  * The plugin's bottom panel shows "1.00×" in its `rate` property, written
108
95
  * with the player's own request. The parameters are the protocol's
109
- * (`property`, `value`); the player checks `ui.mount` and the value.
96
+ * (`property`, `value`); the player checks the value.
110
97
  * ```ts
111
98
  * const bar = plugin.panels.mount("bottom", "ui/bar.slint");
112
99
  * await bar.ready;
@@ -127,8 +114,8 @@ export interface Wire {
127
114
  * (`events.subscribe`) as for {@link Player.on}: once per name however
128
115
  * many listeners, always marked as a listener with where it was added
129
116
  * (`why`), never as a copy of the state (`mirror`), so the player keeps
130
- * the plugin running while it listens. The event's capability is the
131
- * same as for `Player.on` (`events` for most). Any other name is listened
117
+ * the plugin running while it listens. As for `Player.on`, most of
118
+ * them arrive only after {@link Player.subscribe}. Any other name is listened
132
119
  * to without a subscription: events the player sends unasked
133
120
  * (`commands.execute`, `ui.callback`, `ui.closed`), or an event of a newer
134
121
  * player that the plugin subscribed to itself with {@link Wire.request}.
@@ -145,10 +132,6 @@ export interface Wire {
145
132
  * @throws `invalid` (throws) `event` is not a non-empty string, or
146
133
  * `listener` is not a function.
147
134
  *
148
- * @capability That of the event: `events`, or `bindings.manage`,
149
- * `commands`, `video.upscaling`, `video.motion` as for {@link Player.on}; none for an
150
- * event listened to without a subscription.
151
- *
152
135
  * @example Log each command the player runs for this plugin
153
136
  * The listener hears the player's `commands.execute` event, which the
154
137
  * player sends unasked when the user picks one of this plugin's commands.
@@ -181,8 +164,6 @@ export interface Wire {
181
164
  * @throws `invalid` (throws) `view` is not a window, panel or settings
182
165
  * page of this plugin.
183
166
  *
184
- * @capability That of the view: `ui.window`, `ui.mount` or `ui.settings`.
185
- *
186
167
  * @example Write a list in rows
187
168
  * The sidebar shows a list the plugin keeps itself. The first write sends
188
169
  * the whole list; later changes are row operations on what the player
@@ -250,7 +231,6 @@ export interface Wire {
250
231
  * plugin.onDispose(() => clearInterval(timer));
251
232
  * ```
252
233
  *
253
- * @capability That of the view: `ui.window`, `ui.mount` or `ui.settings`.
254
234
  * @experimental
255
235
  * @since 1.7.0
256
236
  * @category Plugin
@@ -281,8 +261,6 @@ export interface WireView {
281
261
  * @throws `stale` (rejects) A patch's `base` is not what the player
282
262
  * shows.
283
263
  *
284
- * @capability That of the view: `ui.window`, `ui.mount` or `ui.settings`.
285
- *
286
264
  * @example Show a frame counter
287
265
  * A panel shows how many frames the plugin produced, pushed from the
288
266
  * plugin's own loop. The write goes out at once; if the player is still
@@ -329,7 +307,6 @@ export interface WireView {
329
307
  * the whole value.
330
308
  * @throws `unavailable` (rejects) The view does not show.
331
309
  *
332
- * @capability That of the view: `ui.window`, `ui.mount` or `ui.settings`.
333
310
  * @player 0.6.0
334
311
  *
335
312
  * @example Append a row to a long list
@@ -385,7 +362,6 @@ export interface WireView {
385
362
  * });
386
363
  * ```
387
364
  *
388
- * @capability commands
389
365
  * @experimental
390
366
  * @since 1.7.0
391
367
  * @category Plugin
@@ -410,8 +386,6 @@ export interface WireCommands {
410
386
  * `declaration` is not an object.
411
387
  * @throws `conflict` (throws) A command of this plugin already has the id.
412
388
  *
413
- * @capability commands
414
- *
415
389
  * @example Register a command and turn it off later
416
390
  * The command starts enabled; once the plugin has nothing to export, it
417
391
  * greys it out with an explicit state. No update pass evaluates it.
@@ -529,7 +503,6 @@ export interface WireCommandState {
529
503
  * });
530
504
  * ```
531
505
  *
532
- * @capability commands
533
506
  * @experimental
534
507
  * @since 1.7.0
535
508
  * @category Plugin
@@ -542,7 +515,6 @@ export interface WireCommand extends Disposable {
542
515
  *
543
516
  * @throws `invalid` (rejects) The player refused the declaration.
544
517
  * @throws `conflict` (rejects) Another command has this menu path.
545
- * @throws `capability` (rejects) The manifest does not declare `commands`.
546
518
  * @throws `limit` (rejects) Too many commands in this plugin or the
547
519
  * player.
548
520
  */
@@ -564,8 +536,6 @@ export interface WireCommand extends Disposable {
564
536
  * @throws `missing` (rejects) The command is not registered (refused, or
565
537
  * disposed).
566
538
  *
567
- * @capability commands
568
- *
569
539
  * @example Check a command after its action
570
540
  * The plugin turns its grid on and shows the check mark in the menu once
571
541
  * the player took the state.
@@ -57,8 +57,8 @@ interface Filter<T> extends Disposable {
57
57
  }
58
58
  /**
59
59
  * This plugin's own video processing chain, re-applied for every new source.
60
- * From `plugin.video.filter(id)`; needs `processing.video`,
61
- * `playback.read` and `events`. Without `events` the SDK does not see the
60
+ * From `plugin.video.filter(id)`; call `plugin.player.subscribe()` and
61
+ * `await plugin.player.read()` first. Without `subscribe()` the SDK does not see the
62
62
  * source change: a value set before the media is ready stays `waiting`.
63
63
  *
64
64
  * Members: `set(nodes)` (desired chain, last write wins, `[]` withdraws
@@ -93,7 +93,6 @@ interface Filter<T> extends Disposable {
93
93
  * applies the current value again; `dispose` withdraws the chain. `set`
94
94
  * never throws: a refused chain shows as `failed` in `status`.
95
95
  *
96
- * @capability processing.video, playback.read and events
97
96
  * @see [Process video with a shader or a filter](../../../docs/guides/filters.md)
98
97
  * @since 1.0.0
99
98
  * @category Processing
@@ -101,8 +100,7 @@ interface Filter<T> extends Disposable {
101
100
  export type VideoFilter = Filter<VideoNode[]>;
102
101
  /**
103
102
  * This plugin's own audio chain plus its audio delay in 10 ms steps.
104
- * From `plugin.audio.filter(id)`; needs `processing.audio`,
105
- * `playback.read` and `events`. Same members and rules as
103
+ * From `plugin.audio.filter(id)`. Same members and rules as
106
104
  * {@link VideoFilter}.
107
105
  *
108
106
  * `delayMs` is −10000–10000 in multiples of 10; the positive and the
@@ -122,7 +120,6 @@ export type VideoFilter = Filter<VideoNode[]>;
122
120
  * desired value and never throws, `status` and `onStatus` report the
123
121
  * result, `retry` applies it again, `dispose` withdraws it.
124
122
  *
125
- * @capability processing.audio, playback.read and events
126
123
  * @see [Process video with a shader or a filter](../../../docs/guides/filters.md)
127
124
  * @since 1.0.0
128
125
  * @category Processing
@@ -153,7 +150,7 @@ export interface ViewSettings {
153
150
  panY: number;
154
151
  }
155
152
  /**
156
- * The display layer, from `plugin.video.view()` (`processing.video`).
153
+ * The display layer, from `plugin.video.view()`.
157
154
  *
158
155
  * Single owner: the first plugin to call `view()` owns it; another plugin's
159
156
  * handle reports `failed` (`conflict`) and retries on each `set`. Values
@@ -180,8 +177,6 @@ export interface ViewSettings {
180
177
  * (`invalid`) in `status` and is reported to `onError`, without sending
181
178
  * anything.
182
179
  *
183
- * @capability processing.video, playback.read and events (like
184
- * {@link VideoFilter})
185
180
  * @see [Process video with a shader or a filter](../../../docs/guides/filters.md)
186
181
  * @since 1.0.0
187
182
  * @category Processing
@@ -190,8 +185,6 @@ export interface VideoView extends Disposable {
190
185
  /**
191
186
  * Merged into the current settings; last write wins.
192
187
  *
193
- * @capability processing.video
194
- *
195
188
  * @example Stretch a 4:3 video to fill the window
196
189
  * A 4:3 video fills a 16:9 window, distorted, as the user asked. Each
197
190
  * `set` merges the given fields into this plugin's view settings; the
@@ -209,8 +202,6 @@ export interface VideoView extends Disposable {
209
202
  /**
210
203
  * The status changed.
211
204
  *
212
- * @capability processing.video
213
- *
214
205
  * @example Tell the user another plugin owns the view
215
206
  * When another plugin already controls the display layer, the OSD says
216
207
  * so. The first plugin to call `view()` owns it; this plugin's handle
@@ -252,7 +243,7 @@ export interface RenderSettings {
252
243
  }
253
244
  /**
254
245
  * The GPU renderer's options, from `plugin.video.render()`
255
- * (`processing.video`). Single owner, like {@link VideoView}; the two are
246
+ *. Single owner, like {@link VideoView}; the two are
256
247
  * independent handles.
257
248
  *
258
249
  * Platforms: macOS renders on the GPU by default; Windows does since
@@ -295,8 +286,6 @@ export interface RenderSettings {
295
286
  * the refused `shaders` included, so include `shaders: []` in the next `set` to
296
287
  * go on without them.
297
288
  *
298
- * @capability processing.video, playback.read and events (like
299
- * {@link VideoFilter})
300
289
  * @see [Process video with a shader or a filter](../../../docs/guides/filters.md)
301
290
  * @since 1.0.0
302
291
  * @category Processing
@@ -305,8 +294,6 @@ export interface RenderOptions extends Disposable {
305
294
  /**
306
295
  * Merged into the current settings; last write wins.
307
296
  *
308
- * @capability processing.video
309
- *
310
297
  * @example Turn on motion interpolation
311
298
  * Motion becomes smoother on the GPU renderer. `set` merges the field into
312
299
  * the plugin's render options; under software rendering the status turns
@@ -334,8 +321,6 @@ export interface RenderOptions extends Disposable {
334
321
  /**
335
322
  * The status changed (including later pushes such as shader compile errors).
336
323
  *
337
- * @capability processing.video
338
- *
339
324
  * @example Report a shader that does not compile
340
325
  * The OSD shows mpv's message when a shader the plugin set fails to
341
326
  * compile. The player pushes that failure after the `set` was accepted, so
@@ -353,7 +338,7 @@ export interface RenderOptions extends Disposable {
353
338
  }
354
339
  /**
355
340
  * This plugin's own GPU shaders, from `plugin.video.shaders(id)`
356
- * (`processing.video`): mpv user shaders (`.glsl`, `//!HOOK` …) that the GPU
341
+ *: mpv user shaders (`.glsl`, `//!HOOK` …) that the GPU
357
342
  * renderer runs on every frame.
358
343
  *
359
344
  * @remarks
@@ -415,7 +400,6 @@ export interface RenderOptions extends Disposable {
415
400
  * shaders.set([join(packageDirectory, "shaders", "sharpen.glsl")]);
416
401
  * ```
417
402
  *
418
- * @capability processing.video
419
403
  * @player 0.5.20
420
404
  * @see [Process video with a shader or a filter](../../../docs/guides/filters.md)
421
405
  * @since 1.5.39
@@ -432,7 +416,6 @@ export interface VideoShaders extends Disposable {
432
416
  * the interface's remarks) and goes to {@link Scope.onError}, and what the
433
417
  * player held stays.
434
418
  *
435
- * @capability processing.video
436
419
  * @param paths - Absolute paths of shader files in this plugin's package
437
420
  * or data directory, in the order they run.
438
421
  *
@@ -456,8 +439,6 @@ export interface VideoShaders extends Disposable {
456
439
  /**
457
440
  * Withdraw this handle's shaders (the same as `set([])`).
458
441
  *
459
- * @capability processing.video
460
- *
461
442
  * @example Turn the plugin's shaders off from a menu item
462
443
  * A Video menu item turns the plugin's shader on and off. Clearing
463
444
  * keeps the handle, so the next pick sets the list again.
@@ -491,8 +472,6 @@ export interface VideoShaders extends Disposable {
491
472
  * The status changed, including later pushes (a compile failure, a
492
473
  * switch to software rendering).
493
474
  *
494
- * @capability processing.video
495
- *
496
475
  * @example Report a shader that does not compile
497
476
  * The OSD shows mpv's message when the plugin's shader fails to compile.
498
477
  * The player pushes that failure after the list was accepted, so it
@@ -774,7 +753,7 @@ export interface UpscalingState {
774
753
  }
775
754
  /**
776
755
  * `plugin.video.upscaling`: the GPU's video upscaler, NVIDIA RTX Video
777
- * Super Resolution on Windows (`video.upscaling`). Read whether it works
756
+ * Super Resolution on Windows. Read whether it works
778
757
  * here and why not; turn it on or off for this plugin.
779
758
  *
780
759
  * @remarks
@@ -831,7 +810,6 @@ export interface UpscalingState {
831
810
  * });
832
811
  * ```
833
812
  *
834
- * @capability video.upscaling
835
813
  * @player 0.5.16
836
814
  * @since 1.5.37
837
815
  * @category Processing
@@ -841,11 +819,8 @@ export interface VideoUpscaling {
841
819
  * Read whether the upscaler works now and why not, whether this plugin
842
820
  * turned it on and what the player asked the GPU for.
843
821
  *
844
- * @capability video.upscaling
845
822
  * @returns The state, once the player's GPU check ran (the first call
846
823
  * starts it and may take a moment).
847
- * @throws `capability` (rejects) The manifest does not declare
848
- * `video.upscaling`.
849
824
  *
850
825
  * @example Find out whether upscaling can work here
851
826
  * The plugin reads the state the first time the user picks its upscaling
@@ -858,6 +833,7 @@ export interface VideoUpscaling {
858
833
  * if (!available) console.log(reason?.message);
859
834
  * ```
860
835
  *
836
+ * @throws `disabled` (rejects) The plugin is stopping.
861
837
  * @since 1.5.37
862
838
  */
863
839
  state(): Promise<UpscalingState>;
@@ -872,12 +848,9 @@ export interface VideoUpscaling {
872
848
  * whole plugin, not of a {@link Scope}: disposing a scope does not turn
873
849
  * it off.
874
850
  *
875
- * @capability video.upscaling
876
851
  * @param enabled - `true` to ask for upscaling, `false` to withdraw the
877
852
  * request.
878
853
  * @returns The new state.
879
- * @throws `capability` (rejects) The manifest does not declare
880
- * `video.upscaling`.
881
854
  * @throws `invalid` (rejects) `enabled` is not a boolean.
882
855
  * @throws `unsupported` (rejects) `true` where upscaling cannot work in
883
856
  * this run: every {@link UpscalingReasonCode} except `decoding`, and
@@ -931,12 +904,9 @@ export interface VideoUpscaling {
931
904
  * open, and dispose of the listener when it closes. Players before 0.5.25 do not know the event: the listener
932
905
  * never fires and the SDK logs that the player refused the subscription.
933
906
  *
934
- * @capability video.upscaling
935
907
  * @param listener - Receives the new state.
936
908
  * @returns Stops listening; also when the scope that added it is
937
909
  * disposed.
938
- * @throws `capability` (synchronously) The manifest does not declare
939
- * `video.upscaling`.
940
910
  *
941
911
  * @example Show how upscaling runs while a window is open
942
912
  * The plugin's window shows the factor, the sizes and the GPU while it
@@ -1116,7 +1086,7 @@ export interface MotionState {
1116
1086
  }
1117
1087
  /**
1118
1088
  * `plugin.video.motion(engine)`: motion smoothing, the video's frame rate doubled by
1119
- * the GPU's frame-rate converter (AMD AMF's on Windows; `video.motion`).
1089
+ * the GPU's frame-rate converter (AMD AMF's on Windows).
1120
1090
  * Read whether it works here and why not; choose a mode for this plugin.
1121
1091
  *
1122
1092
  * @remarks
@@ -1166,7 +1136,6 @@ export interface MotionState {
1166
1136
  * });
1167
1137
  * ```
1168
1138
  *
1169
- * @capability video.motion
1170
1139
  * @player 0.8.1
1171
1140
  * @since 1.7.19
1172
1141
  * @category Processing
@@ -1176,11 +1145,8 @@ export interface VideoMotion {
1176
1145
  * Read this plugin's mode, what the player does now and why each mode
1177
1146
  * cannot work.
1178
1147
  *
1179
- * @capability video.motion
1180
1148
  * @returns The state. The first call of any plugin looks for the GPU
1181
1149
  * (no device is created, so no GPU is woken).
1182
- * @throws `capability` (rejects) The manifest does not declare
1183
- * `video.motion`.
1184
1150
  *
1185
1151
  * @example Find out whether Match Display can work here
1186
1152
  * The plugin reads the state when its panel shows; a reason greys the
@@ -1190,6 +1156,7 @@ export interface VideoMotion {
1190
1156
  * if (display) console.log(display.message);
1191
1157
  * ```
1192
1158
  *
1159
+ * @throws `disabled` (rejects) The plugin is stopping.
1193
1160
  * @since 1.7.19
1194
1161
  */
1195
1162
  state(): Promise<MotionState>;
@@ -1203,11 +1170,8 @@ export interface VideoMotion {
1203
1170
  * takes the converter out at once unless another plugin asks for it. The
1204
1171
  * mode is a request of the whole plugin, not of a {@link Scope}.
1205
1172
  *
1206
- * @capability video.motion
1207
1173
  * @param mode - `off`, `double` or `display`.
1208
1174
  * @returns The new state.
1209
- * @throws `capability` (rejects) The manifest does not declare
1210
- * `video.motion`.
1211
1175
  * @throws `invalid` (rejects) `mode` is not one of the three.
1212
1176
  * @throws `unsupported` (rejects) A mode that cannot work in this run:
1213
1177
  * `platform`, `no-gpu`, `runtime`, `filter`, and `rendering` for
@@ -1249,12 +1213,9 @@ export interface VideoMotion {
1249
1213
  * {@link VideoUpscaling.onChange}'s does: listen only while a window or
1250
1214
  * panel shows the state.
1251
1215
  *
1252
- * @capability video.motion
1253
1216
  * @param listener - Receives the new state.
1254
1217
  * @returns Stops listening; also when the scope that added it is
1255
1218
  * disposed.
1256
- * @throws `capability` (synchronously) The manifest does not declare
1257
- * `video.motion`.
1258
1219
  *
1259
1220
  * @example Show the rates while a panel is open
1260
1221
  * The plugin listens only while its panel shows, since the listener