@vestra-player/sdk 1.6.16 → 1.6.17
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 +8 -0
- package/dist/commands.d.ts +5 -5
- package/dist/commands.js +117 -139
- package/dist/docs-tree.json.gz +0 -0
- package/dist/plugin/testing.js +37 -93
- package/llms.txt +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.17
|
|
4
|
+
|
|
5
|
+
**Who must change: nobody.** Tables follow the slim context menu (B5): a data refresh of `BUILTIN_COMMANDS`, `BUILTIN_SUBMENUS` and the test host's core commands for the player's right-click menu (player 0.7.6); no API change, `apiVersion` stays `vestra/1`. A plugin whose tests compare a path or a key against the tables sees the player's current ones.
|
|
6
|
+
|
|
7
|
+
- **`BUILTIN_COMMANDS`**: the top level is now Open File…, Open ▸, Close — **Play/Pause** (`host/play-pause`, from Playback ▸), Audio Track ▸, Subtitle Track ▸, **Snapshot ▸** (`vestra.capture`, from Video ▸) — Picture…, Audio…, Subtitles…, Playback…, Playlist, **Chapter and Bookmark List…** (`vestra.marks`, from Playback ▸ Chapters and Bookmarks ▸) — Toggle Fullscreen — Vestra Player AI…, Plugin Store… — **Command Palette…** (`host/palette`, in the menu now, with an ellipsis; `Ctrl+Shift+P` unchanged), **Options…** (`vestra.preferences`, from Settings ▸), About Vestra Player… — Quit. Open ▸ gains **Search and Download Subtitles…** (`vestra.subtitle-online`, from Subtitles ▸ Online Subtitles ▸). Everything else left the menu for the command palette, with ids, keys and categories unchanged: the player's Previous and Next (PageUp, PageDown, the side mouse buttons), Volume +, Volume − and Mute (the Audio panel has their controls); the playback plugin's Reopen, Copy to Clipboard ▸, Disable Screen Saver and the seek-bar hover items; the window plugin's Hide Pointer and the whole Screen ▸ menu; Playback ▸ Playlist ▸; Resume Playback ▸; the marks plugin's bookmark, chapter and A-B Loop items; Online Subtitle Settings…; the visualizer's Show Album Cover, Show Logo When Idle, Choose Logo Image… and Reset ▸ Idle Logo; Keyboard Shortcuts…, Mouse… and Ignore Default Shortcuts; Appearance ▸ and Language ▸; Playback Info, Playback Properties… and Check for Updates…. The table in [Reference: commands](docs/reference/commands.md) follows, with the new top level, its groups and orders (Toggle Fullscreen 810, Command Palette… 829).
|
|
8
|
+
- **`BUILTIN_SUBMENUS`**: Open ▸ Recently Played, Audio Track, Subtitle Track and Snapshot (a top-level submenu now) remain; the Playback, Subtitles, Screen and Settings submenus and Copy to Clipboard are gone. The built-in menus (`@playback`, `@subtitles`, `@video`, `@audio`, `@screen`, `@settings`, `@reset`) stay valid for plugins at their fixed orders and are shown only while a command is in them.
|
|
9
|
+
- **`TestHost`**: the core commands carry the player's menu places: Play/Pause at the top level (`["Play/Pause"]`, order 201), Previous, Next, the volume steps and Mute outside the menu, and the seek, frame and speed actions outside the menu as the player has had them since 1.6.15 (the test host kept their Playback ▸ Seek and Speed paths until now). A plugin item at `["Playback", "Seek", …]`, `["@playback", "Speed"]` or `["Audio", …]` is therefore accepted, as the player accepts it (1.5.48 listed `Playback ▸ Speed` as an item and `Audio ▸ Mute ▸ …` as conflicts: they were, while the player's items were there); `["Play/Pause"]`, `["Close"]` and an item below either are conflicts.
|
|
10
|
+
|
|
3
11
|
## 1.6.16
|
|
4
12
|
|
|
5
13
|
**Who must change: nobody.** A data refresh for the player's four built-in panels (player 0.7.6) and one additive read; no API is removed, `apiVersion` stays `vestra/1`.
|
package/dist/commands.d.ts
CHANGED
|
@@ -208,10 +208,10 @@ export interface BuiltinSubmenu {
|
|
|
208
208
|
* built-in plugins declare.
|
|
209
209
|
*
|
|
210
210
|
* @example Add an item to the built-in Snapshot submenu
|
|
211
|
-
* "Copy Snapshot" appears in
|
|
211
|
+
* "Copy Snapshot" appears in Snapshot ▸ next to the built-in capture
|
|
212
212
|
* plugin's items. Paths merge by their English keys, so a command whose
|
|
213
|
-
* path
|
|
214
|
-
*
|
|
213
|
+
* path starts with the submenu's keys (`["Snapshot"]`, a top-level submenu
|
|
214
|
+
* since player 0.7.6) lands in the same submenu whatever the interface
|
|
215
215
|
* language.
|
|
216
216
|
* ```ts
|
|
217
217
|
* import type { Plugin } from "@vestra-player/sdk";
|
|
@@ -223,8 +223,8 @@ export interface BuiltinSubmenu {
|
|
|
223
223
|
* const snapshot = BUILTIN_SUBMENUS.find((menu) => menu.path.at(-1) === "Snapshot")!;
|
|
224
224
|
* plugin.commands.add({
|
|
225
225
|
* id: "snapshot-to-clipboard",
|
|
226
|
-
* // ["
|
|
227
|
-
* path: [
|
|
226
|
+
* // ["Snapshot", "Copy Snapshot"]
|
|
227
|
+
* path: [...snapshot.path, "Copy Snapshot"],
|
|
228
228
|
* run: copySnapshot,
|
|
229
229
|
* });
|
|
230
230
|
* ```
|
package/dist/commands.js
CHANGED
|
@@ -234,10 +234,10 @@ export const BAR_BUTTON_LIMITS = {
|
|
|
234
234
|
* built-in plugins declare.
|
|
235
235
|
*
|
|
236
236
|
* @example Add an item to the built-in Snapshot submenu
|
|
237
|
-
* "Copy Snapshot" appears in
|
|
237
|
+
* "Copy Snapshot" appears in Snapshot ▸ next to the built-in capture
|
|
238
238
|
* plugin's items. Paths merge by their English keys, so a command whose
|
|
239
|
-
* path
|
|
240
|
-
*
|
|
239
|
+
* path starts with the submenu's keys (`["Snapshot"]`, a top-level submenu
|
|
240
|
+
* since player 0.7.6) lands in the same submenu whatever the interface
|
|
241
241
|
* language.
|
|
242
242
|
* ```ts
|
|
243
243
|
* import type { Plugin } from "@vestra-player/sdk";
|
|
@@ -249,8 +249,8 @@ export const BAR_BUTTON_LIMITS = {
|
|
|
249
249
|
* const snapshot = BUILTIN_SUBMENUS.find((menu) => menu.path.at(-1) === "Snapshot")!;
|
|
250
250
|
* plugin.commands.add({
|
|
251
251
|
* id: "snapshot-to-clipboard",
|
|
252
|
-
* // ["
|
|
253
|
-
* path: [
|
|
252
|
+
* // ["Snapshot", "Copy Snapshot"]
|
|
253
|
+
* path: [...snapshot.path, "Copy Snapshot"],
|
|
254
254
|
* run: copySnapshot,
|
|
255
255
|
* });
|
|
256
256
|
* ```
|
|
@@ -261,31 +261,9 @@ export const BAR_BUTTON_LIMITS = {
|
|
|
261
261
|
*/
|
|
262
262
|
export const BUILTIN_SUBMENUS = Object.freeze([
|
|
263
263
|
{ path: ["Open", "Recently Played"], plugins: ["vestra.history"] },
|
|
264
|
-
{ path: ["Playback", "A-B Loop"], plugins: ["vestra.marks"] },
|
|
265
|
-
{ path: ["Playback", "A-B Loop", "Loop Count"], plugins: ["vestra.marks"] },
|
|
266
|
-
{ path: ["Playback", "Chapters and Bookmarks"], plugins: ["vestra.marks"] },
|
|
267
|
-
{ path: ["Playback", "Playlist"], plugins: ["vestra.playlist"] },
|
|
268
|
-
{ path: ["Playback", "Playlist", "Repeat"], plugins: ["vestra.playlist"] },
|
|
269
|
-
{
|
|
270
|
-
path: ["Playback", "Playlist", "When Opening a File"],
|
|
271
|
-
plugins: ["vestra.playlist"],
|
|
272
|
-
},
|
|
273
|
-
{ path: ["Playback", "Resume Playback"], plugins: ["vestra.history"] },
|
|
274
|
-
{
|
|
275
|
-
path: ["Subtitles", "Online Subtitles"],
|
|
276
|
-
plugins: ["vestra.subtitle-online"],
|
|
277
|
-
},
|
|
278
|
-
{ path: ["Video", "Snapshot"], plugins: ["vestra.capture"] },
|
|
279
|
-
{ path: ["Screen", "Always on Top"], plugins: ["vestra.window"] },
|
|
280
|
-
{ path: ["Screen", "When Playback Starts"], plugins: ["vestra.window"] },
|
|
281
|
-
{
|
|
282
|
-
path: ["Settings", "Appearance"],
|
|
283
|
-
plugins: ["vestra.preferences", "vestra.visualizer"],
|
|
284
|
-
},
|
|
285
|
-
{ path: ["Settings", "Language"], plugins: ["vestra.preferences"] },
|
|
286
|
-
{ path: ["Copy to Clipboard"], plugins: ["vestra.playback"] },
|
|
287
|
-
{ path: ["Subtitle Track"], plugins: ["vestra.subtitles"] },
|
|
288
264
|
{ path: ["Audio Track"], plugins: ["vestra.audio"] },
|
|
265
|
+
{ path: ["Subtitle Track"], plugins: ["vestra.subtitles"] },
|
|
266
|
+
{ path: ["Snapshot"], plugins: ["vestra.capture"] },
|
|
289
267
|
]);
|
|
290
268
|
/** owner | id | key path, or (title) outside the menu | bindings | panel */
|
|
291
269
|
const BUILTIN_COMMAND_TABLE = `
|
|
@@ -293,136 +271,44 @@ vestra.playback | open | Open File… | Ctrl+O, F3
|
|
|
293
271
|
vestra.playback | open-url | Open ▸ Open URL… | Ctrl+U
|
|
294
272
|
vestra.playlist | playlist.open-folder | Open ▸ Open Folder… | F2
|
|
295
273
|
vestra.subtitles | load | Open ▸ Open Subtitle… | Alt+O
|
|
274
|
+
vestra.subtitles | load-secondary | Open ▸ Add Secondary Subtitle…
|
|
296
275
|
vestra.audio | audio.load | Open ▸ Load External Audio…
|
|
276
|
+
vestra.subtitle-online | search | Open ▸ Search and Download Subtitles…
|
|
297
277
|
vestra.history | recent.empty | Open ▸ Recently Played ▸ (No Entries)
|
|
298
278
|
vestra.history | recent.prune | Open ▸ Recently Played ▸ Remove Invalid Entries
|
|
299
279
|
vestra.history | recent.clear | Open ▸ Recently Played ▸ Clear Entries
|
|
300
280
|
vestra.history | recent.enabled | Open ▸ Recently Played ▸ Record Playback History
|
|
301
|
-
vestra.subtitles | load-secondary | Open ▸ Add Secondary Subtitle…
|
|
302
281
|
host | stop | Close | F4
|
|
303
|
-
|
|
304
|
-
vestra.playback | copy-name | Copy to Clipboard ▸ File Name
|
|
305
|
-
vestra.playback | copy-folder | Copy to Clipboard ▸ Folder Path
|
|
306
|
-
vestra.playback | copy-path | Copy to Clipboard ▸ Full Path
|
|
307
|
-
host | play-pause | Playback ▸ Play/Pause | Space, Mouse:LeftClick
|
|
308
|
-
host | previous | Playback ▸ Previous | PageUp, Mouse:X2
|
|
309
|
-
host | next | Playback ▸ Next | PageDown, Mouse:X1
|
|
310
|
-
vestra.playlist | playlist.add | Playback ▸ Playlist ▸ Add Files…
|
|
311
|
-
vestra.playlist | playlist.link | Playback ▸ Playlist ▸ Add Link…
|
|
312
|
-
vestra.playlist | playlist.add-folder | Playback ▸ Playlist ▸ Add Folder…
|
|
313
|
-
vestra.playlist | playlist.repeat-none | Playback ▸ Playlist ▸ Repeat ▸ Off
|
|
314
|
-
vestra.playlist | playlist.repeat-all | Playback ▸ Playlist ▸ Repeat ▸ All
|
|
315
|
-
vestra.playlist | playlist.repeat-one | Playback ▸ Playlist ▸ Repeat ▸ One
|
|
316
|
-
vestra.playlist | playlist.shuffle | Playback ▸ Playlist ▸ Shuffle
|
|
317
|
-
vestra.playlist | playlist.open-list | Playback ▸ Playlist ▸ Open List File…
|
|
318
|
-
vestra.playlist | playlist.save-list | Playback ▸ Playlist ▸ Save List…
|
|
319
|
-
vestra.playlist | playlist.open-mode-only | Playback ▸ Playlist ▸ When Opening a File ▸ Open Only That File
|
|
320
|
-
vestra.playlist | playlist.open-mode-similar | Playback ▸ Playlist ▸ When Opening a File ▸ Add Similar Files
|
|
321
|
-
vestra.playlist | playlist.open-mode-folder | Playback ▸ Playlist ▸ When Opening a File ▸ Add All Files in the Folder
|
|
322
|
-
vestra.playlist | playlist.fast-advance | Playback ▸ Playlist ▸ Fast Advance to Next
|
|
323
|
-
vestra.playlist | playlist.remember | Playback ▸ Playlist ▸ Remember List
|
|
324
|
-
vestra.playlist | playlist.confirm-clear | Playback ▸ Playlist ▸ Confirm Before Removing All
|
|
325
|
-
vestra.playback | prevent-sleep | Playback ▸ Disable Screen Saver While Playing
|
|
326
|
-
vestra.window | hide-cursor | Playback ▸ Hide Pointer While Playing
|
|
327
|
-
vestra.playback | hover-time | Playback ▸ Show Time on Seek Bar Hover
|
|
328
|
-
vestra.playback | hover-thumbnail | Playback ▸ Show Thumbnail on Seek Bar Hover
|
|
329
|
-
vestra.history | resume.off | Playback ▸ Resume Playback ▸ Don't Resume
|
|
330
|
-
vestra.history | resume.auto | Playback ▸ Resume Playback ▸ Resume Automatically
|
|
331
|
-
vestra.history | resume.ask | Playback ▸ Resume Playback ▸ Ask Every Time
|
|
332
|
-
vestra.history | resume.audio | Playback ▸ Resume Playback ▸ Also Remember Audio Files
|
|
333
|
-
vestra.history | resume.clear | Playback ▸ Resume Playback ▸ Clear All Saved Positions
|
|
334
|
-
vestra.marks | marks.list | Playback ▸ Chapters and Bookmarks ▸ Chapter and Bookmark List… | H
|
|
335
|
-
vestra.marks | marks.add | Playback ▸ Chapters and Bookmarks ▸ Add Bookmark | P
|
|
336
|
-
vestra.marks | marks.previous | Playback ▸ Chapters and Bookmarks ▸ Previous Bookmark or Chapter | Shift+PageUp
|
|
337
|
-
vestra.marks | marks.next | Playback ▸ Chapters and Bookmarks ▸ Next Bookmark or Chapter | Shift+PageDown
|
|
338
|
-
vestra.marks | marks.previous-chapter | Playback ▸ Chapters and Bookmarks ▸ Previous Chapter | Ctrl+PageUp
|
|
339
|
-
vestra.marks | marks.next-chapter | Playback ▸ Chapters and Bookmarks ▸ Next Chapter | Ctrl+PageDown
|
|
340
|
-
vestra.marks | marks.seekbar | Playback ▸ Chapters and Bookmarks ▸ Show Marks on Seek Bar
|
|
341
|
-
vestra.marks | ab.set-a | Playback ▸ A-B Loop ▸ Set Start Point | [
|
|
342
|
-
vestra.marks | ab.clear-a | Playback ▸ A-B Loop ▸ Clear Start Point | {
|
|
343
|
-
vestra.marks | ab.a-back | Playback ▸ A-B Loop ▸ Start Point Back 0.1 s | Ctrl+[
|
|
344
|
-
vestra.marks | ab.a-forward | Playback ▸ A-B Loop ▸ Start Point Forward 0.1 s | Alt+[
|
|
345
|
-
vestra.marks | ab.set-b | Playback ▸ A-B Loop ▸ Set End Point | ]
|
|
346
|
-
vestra.marks | ab.clear-b | Playback ▸ A-B Loop ▸ Clear End Point | }
|
|
347
|
-
vestra.marks | ab.b-back | Playback ▸ A-B Loop ▸ End Point Back 0.1 s | Ctrl+]
|
|
348
|
-
vestra.marks | ab.b-forward | Playback ▸ A-B Loop ▸ End Point Forward 0.1 s | Alt+]
|
|
349
|
-
vestra.marks | ab.back | Playback ▸ A-B Loop ▸ Move Range Back 0.1 s | Ctrl+Alt+[
|
|
350
|
-
vestra.marks | ab.forward | Playback ▸ A-B Loop ▸ Move Range Forward 0.1 s | Ctrl+Alt+]
|
|
351
|
-
vestra.marks | ab.segment | Playback ▸ A-B Loop ▸ Loop Current Chapter or Bookmark Range | Alt+\\
|
|
352
|
-
vestra.marks | ab.toggle | Playback ▸ A-B Loop ▸ A-B Loop On/Off | \\
|
|
353
|
-
vestra.marks | ab.count.endless | Playback ▸ A-B Loop ▸ Loop Count ▸ Endless
|
|
354
|
-
vestra.marks | ab.count.1 | Playback ▸ A-B Loop ▸ Loop Count ▸ Once
|
|
355
|
-
vestra.marks | ab.count.2 | Playback ▸ A-B Loop ▸ Loop Count ▸ 2 Times
|
|
356
|
-
vestra.marks | ab.count.3 | Playback ▸ A-B Loop ▸ Loop Count ▸ 3 Times
|
|
357
|
-
vestra.marks | ab.count.5 | Playback ▸ A-B Loop ▸ Loop Count ▸ 5 Times
|
|
358
|
-
vestra.marks | ab.count.10 | Playback ▸ A-B Loop ▸ Loop Count ▸ 10 Times
|
|
359
|
-
vestra.subtitle-online | search | Subtitles ▸ Online Subtitles ▸ Search and Download Subtitles…
|
|
360
|
-
vestra.subtitle-online | settings | Subtitles ▸ Online Subtitles ▸ Online Subtitle Settings…
|
|
361
|
-
vestra.subtitles | track-off | Subtitle Track ▸ Off
|
|
362
|
-
vestra.capture | capture.save | Video ▸ Snapshot ▸ Save Current Frame | Ctrl+E
|
|
363
|
-
vestra.capture | capture.panel | Video ▸ Snapshot ▸ Capture… | Alt+S
|
|
364
|
-
vestra.capture | capture.copy | Video ▸ Snapshot ▸ Copy Current Frame | Ctrl+C
|
|
365
|
-
vestra.capture | capture.burst | Video ▸ Snapshot ▸ Burst… | Ctrl+G
|
|
366
|
-
vestra.capture | capture.clip | Video ▸ Snapshot ▸ Export Clip…
|
|
367
|
-
host | volume-up | Audio ▸ Volume + | ArrowUp, Mouse:WheelUp
|
|
368
|
-
host | volume-down | Audio ▸ Volume − | ArrowDown, Mouse:WheelDown
|
|
369
|
-
host | mute | Audio ▸ Mute | M
|
|
370
|
-
vestra.visualizer | audio-cover | Audio ▸ Show Album Cover for Audio Only
|
|
282
|
+
host | play-pause | Play/Pause | Space, Mouse:LeftClick
|
|
371
283
|
vestra.audio | audio.track.none | Audio Track ▸ No Audio Tracks
|
|
372
|
-
|
|
373
|
-
vestra.
|
|
374
|
-
vestra.
|
|
375
|
-
vestra.
|
|
376
|
-
vestra.
|
|
377
|
-
vestra.
|
|
378
|
-
vestra.window | size.2 | Screen ▸ 2× | 4
|
|
379
|
-
vestra.window | fit | Screen ▸ Fit to Video Aspect Ratio | 8
|
|
380
|
-
vestra.window | auto.off | Screen ▸ When Playback Starts ▸ Don't Resize
|
|
381
|
-
vestra.window | auto.0.5 | Screen ▸ When Playback Starts ▸ 0.5×
|
|
382
|
-
vestra.window | auto.1 | Screen ▸ When Playback Starts ▸ 1×
|
|
383
|
-
vestra.window | auto.1.5 | Screen ▸ When Playback Starts ▸ 1.5×
|
|
384
|
-
vestra.window | auto.2 | Screen ▸ When Playback Starts ▸ 2×
|
|
385
|
-
vestra.window | auto.fit | Screen ▸ When Playback Starts ▸ Fit to Video Aspect Ratio
|
|
386
|
-
vestra.window | auto.once | Screen ▸ When Playback Starts ▸ Only Once
|
|
387
|
-
vestra.window | top.cycle | Screen ▸ Always on Top ▸ Cycle Mode | Ctrl+T
|
|
388
|
-
vestra.window | top.never | Screen ▸ Always on Top ▸ Never
|
|
389
|
-
vestra.window | top.always | Screen ▸ Always on Top ▸ Always
|
|
390
|
-
vestra.window | top.playing | Screen ▸ Always on Top ▸ While Playing
|
|
391
|
-
vestra.window | top.fullscreen | Screen ▸ Always on Top ▸ While Playing in Fullscreen
|
|
284
|
+
vestra.subtitles | track-off | Subtitle Track ▸ Off
|
|
285
|
+
vestra.capture | capture.save | Snapshot ▸ Save Current Frame | Ctrl+E
|
|
286
|
+
vestra.capture | capture.copy | Snapshot ▸ Copy Current Frame | Ctrl+C
|
|
287
|
+
vestra.capture | capture.burst | Snapshot ▸ Burst… | Ctrl+G
|
|
288
|
+
vestra.capture | capture.clip | Snapshot ▸ Export Clip…
|
|
289
|
+
vestra.capture | capture.panel | Snapshot ▸ Capture… | Alt+S
|
|
392
290
|
vestra.video | video.picture | Picture… | Alt+1
|
|
393
291
|
vestra.audio | audio.workbench | Audio… | Alt+2
|
|
394
292
|
vestra.subtitles | tune | Subtitles… | Alt+3
|
|
395
293
|
vestra.playback | panel | Playback… | Alt+4
|
|
396
294
|
vestra.playlist | playlist.visibility | Playlist | F6
|
|
397
|
-
vestra.
|
|
398
|
-
|
|
295
|
+
vestra.marks | marks.list | Chapter and Bookmark List… | H
|
|
296
|
+
host | fullscreen | Toggle Fullscreen | Escape
|
|
399
297
|
vestra.workshop | workshop.open | Vestra Player AI…
|
|
400
298
|
vestra.store | open | Plugin Store…
|
|
401
|
-
|
|
402
|
-
vestra.
|
|
403
|
-
vestra.hotkeys | mouse | Settings ▸ Mouse…
|
|
404
|
-
vestra.hotkeys | ignore-defaults | Settings ▸ Ignore Default Shortcuts
|
|
405
|
-
vestra.preferences | theme.vestra | Settings ▸ Appearance ▸ Vestra Dark
|
|
406
|
-
vestra.preferences | theme.vestra-light | Settings ▸ Appearance ▸ Vestra Light
|
|
407
|
-
vestra.visualizer | idle-logo | Settings ▸ Appearance ▸ Show Logo When Idle
|
|
408
|
-
vestra.visualizer | choose-logo | Settings ▸ Appearance ▸ Choose Logo Image…
|
|
409
|
-
vestra.preferences | language.system | Settings ▸ Language ▸ Follow System
|
|
410
|
-
vestra.preferences | language.en | Settings ▸ Language ▸ English
|
|
411
|
-
vestra.preferences | language.zh-Hans | Settings ▸ Language ▸ 简体中文
|
|
412
|
-
vestra.preferences | language.ja | Settings ▸ Language ▸ 日本語
|
|
413
|
-
vestra.preferences | language.ko | Settings ▸ Language ▸ 한국어
|
|
414
|
-
vestra.preferences | language.de | Settings ▸ Language ▸ Deutsch
|
|
415
|
-
vestra.preferences | language.fr | Settings ▸ Language ▸ Français
|
|
416
|
-
vestra.preferences | language.es | Settings ▸ Language ▸ Español
|
|
417
|
-
vestra.visualizer | reset-logo | Reset ▸ Idle Logo
|
|
299
|
+
host | palette | Command Palette… | Ctrl+Shift+P
|
|
300
|
+
vestra.preferences | options | Options… | F5
|
|
418
301
|
vestra.info | info.about | About Vestra Player… | F1
|
|
419
|
-
vestra.info | info.update | Check for Updates…
|
|
420
302
|
host | quit | Quit | Cmd+Q
|
|
303
|
+
host | previous | (Previous) | PageUp, Mouse:X2
|
|
304
|
+
host | next | (Next) | PageDown, Mouse:X1
|
|
421
305
|
host | enter-fullscreen | (Enter Fullscreen)
|
|
422
306
|
host | exit-fullscreen | (Leave Fullscreen)
|
|
423
307
|
host | sidebar | (Toggle Sidebar)
|
|
424
|
-
host | palette | (Command Palette) | Ctrl+Shift+P
|
|
425
308
|
host | adjust | (Adjust)
|
|
309
|
+
host | volume-up | (Volume +) | ArrowUp, Mouse:WheelUp
|
|
310
|
+
host | volume-down | (Volume −) | ArrowDown, Mouse:WheelDown
|
|
311
|
+
host | mute | (Mute) | M
|
|
426
312
|
host | frame-back | (Previous Frame) | D
|
|
427
313
|
host | frame-forward | (Next Frame) | F
|
|
428
314
|
host | seek-backward | (Back 5 s) | ArrowLeft
|
|
@@ -430,6 +316,98 @@ host | seek-forward | (Forward 5 s) | ArrowRight
|
|
|
430
316
|
host | rate-normal | (Normal) | Z
|
|
431
317
|
host | rate-down | (Slower 0.1) | X
|
|
432
318
|
host | rate-up | (Faster 0.1) | C
|
|
319
|
+
vestra.playback | reopen | (Reopen Current/Last File) | Ctrl+Y
|
|
320
|
+
vestra.playback | copy-name | (File Name)
|
|
321
|
+
vestra.playback | copy-folder | (Folder Path)
|
|
322
|
+
vestra.playback | copy-path | (Full Path)
|
|
323
|
+
vestra.playback | prevent-sleep | (Disable Screen Saver While Playing)
|
|
324
|
+
vestra.playback | hover-time | (Show Time on Seek Bar Hover)
|
|
325
|
+
vestra.playback | hover-thumbnail | (Show Thumbnail on Seek Bar Hover)
|
|
326
|
+
vestra.window | hide-cursor | (Hide Pointer While Playing)
|
|
327
|
+
vestra.window | pip | (Picture-in-Picture)
|
|
328
|
+
vestra.window | mini | (Mini Size) | \`
|
|
329
|
+
vestra.window | size.0.5 | (0.5×) | 1
|
|
330
|
+
vestra.window | size.1 | (1×) | 2
|
|
331
|
+
vestra.window | size.1.5 | (1.5×) | 3
|
|
332
|
+
vestra.window | size.2 | (2×) | 4
|
|
333
|
+
vestra.window | fit | (Fit to Video Aspect Ratio) | 8
|
|
334
|
+
vestra.window | auto.off | (Don't Resize)
|
|
335
|
+
vestra.window | auto.0.5 | (0.5×)
|
|
336
|
+
vestra.window | auto.1 | (1×)
|
|
337
|
+
vestra.window | auto.1.5 | (1.5×)
|
|
338
|
+
vestra.window | auto.2 | (2×)
|
|
339
|
+
vestra.window | auto.fit | (Fit to Video Aspect Ratio)
|
|
340
|
+
vestra.window | auto.once | (Only Once)
|
|
341
|
+
vestra.window | top.cycle | (Cycle Mode) | Ctrl+T
|
|
342
|
+
vestra.window | top.never | (Never)
|
|
343
|
+
vestra.window | top.always | (Always)
|
|
344
|
+
vestra.window | top.playing | (While Playing)
|
|
345
|
+
vestra.window | top.fullscreen | (While Playing in Fullscreen)
|
|
346
|
+
vestra.playlist | playlist.add | (Add Files…)
|
|
347
|
+
vestra.playlist | playlist.link | (Add Link…)
|
|
348
|
+
vestra.playlist | playlist.add-folder | (Add Folder…)
|
|
349
|
+
vestra.playlist | playlist.repeat-none | (Off)
|
|
350
|
+
vestra.playlist | playlist.repeat-all | (All)
|
|
351
|
+
vestra.playlist | playlist.repeat-one | (One)
|
|
352
|
+
vestra.playlist | playlist.shuffle | (Shuffle)
|
|
353
|
+
vestra.playlist | playlist.open-list | (Open List File…)
|
|
354
|
+
vestra.playlist | playlist.save-list | (Save List…)
|
|
355
|
+
vestra.playlist | playlist.open-mode-only | (Open Only That File)
|
|
356
|
+
vestra.playlist | playlist.open-mode-similar | (Add Similar Files)
|
|
357
|
+
vestra.playlist | playlist.open-mode-folder | (Add All Files in the Folder)
|
|
358
|
+
vestra.playlist | playlist.fast-advance | (Fast Advance to Next)
|
|
359
|
+
vestra.playlist | playlist.remember | (Remember List)
|
|
360
|
+
vestra.playlist | playlist.confirm-clear | (Confirm Before Removing All)
|
|
361
|
+
vestra.history | resume.off | (Don't Resume)
|
|
362
|
+
vestra.history | resume.auto | (Resume Automatically)
|
|
363
|
+
vestra.history | resume.ask | (Ask Every Time)
|
|
364
|
+
vestra.history | resume.audio | (Also Remember Audio Files)
|
|
365
|
+
vestra.history | resume.clear | (Clear All Saved Positions)
|
|
366
|
+
vestra.marks | marks.add | (Add Bookmark) | P
|
|
367
|
+
vestra.marks | marks.previous | (Previous Bookmark or Chapter) | Shift+PageUp
|
|
368
|
+
vestra.marks | marks.next | (Next Bookmark or Chapter) | Shift+PageDown
|
|
369
|
+
vestra.marks | marks.previous-chapter | (Previous Chapter) | Ctrl+PageUp
|
|
370
|
+
vestra.marks | marks.next-chapter | (Next Chapter) | Ctrl+PageDown
|
|
371
|
+
vestra.marks | marks.seekbar | (Show Marks on Seek Bar)
|
|
372
|
+
vestra.marks | ab.set-a | (Set Start Point) | [
|
|
373
|
+
vestra.marks | ab.clear-a | (Clear Start Point) | {
|
|
374
|
+
vestra.marks | ab.a-back | (Start Point Back 0.1 s) | Ctrl+[
|
|
375
|
+
vestra.marks | ab.a-forward | (Start Point Forward 0.1 s) | Alt+[
|
|
376
|
+
vestra.marks | ab.set-b | (Set End Point) | ]
|
|
377
|
+
vestra.marks | ab.clear-b | (Clear End Point) | }
|
|
378
|
+
vestra.marks | ab.b-back | (End Point Back 0.1 s) | Ctrl+]
|
|
379
|
+
vestra.marks | ab.b-forward | (End Point Forward 0.1 s) | Alt+]
|
|
380
|
+
vestra.marks | ab.back | (Move Range Back 0.1 s) | Ctrl+Alt+[
|
|
381
|
+
vestra.marks | ab.forward | (Move Range Forward 0.1 s) | Ctrl+Alt+]
|
|
382
|
+
vestra.marks | ab.segment | (Loop Current Chapter or Bookmark Range) | Alt+\\
|
|
383
|
+
vestra.marks | ab.toggle | (A-B Loop On/Off) | \\
|
|
384
|
+
vestra.marks | ab.count.endless | (Endless)
|
|
385
|
+
vestra.marks | ab.count.1 | (Once)
|
|
386
|
+
vestra.marks | ab.count.2 | (2 Times)
|
|
387
|
+
vestra.marks | ab.count.3 | (3 Times)
|
|
388
|
+
vestra.marks | ab.count.5 | (5 Times)
|
|
389
|
+
vestra.marks | ab.count.10 | (10 Times)
|
|
390
|
+
vestra.subtitle-online | settings | (Online Subtitle Settings…)
|
|
391
|
+
vestra.visualizer | audio-cover | (Show Album Cover for Audio Only)
|
|
392
|
+
vestra.visualizer | idle-logo | (Show Logo When Idle)
|
|
393
|
+
vestra.visualizer | choose-logo | (Choose Logo Image…)
|
|
394
|
+
vestra.visualizer | reset-logo | (Idle Logo)
|
|
395
|
+
vestra.hotkeys | keys | (Keyboard Shortcuts…)
|
|
396
|
+
vestra.hotkeys | mouse | (Mouse…)
|
|
397
|
+
vestra.hotkeys | ignore-defaults | (Ignore Default Shortcuts)
|
|
398
|
+
vestra.preferences | theme.vestra | (Vestra Dark)
|
|
399
|
+
vestra.preferences | theme.vestra-light | (Vestra Light)
|
|
400
|
+
vestra.preferences | language.system | (Follow System)
|
|
401
|
+
vestra.preferences | language.en | (English)
|
|
402
|
+
vestra.preferences | language.zh-Hans | (简体中文)
|
|
403
|
+
vestra.preferences | language.ja | (日本語)
|
|
404
|
+
vestra.preferences | language.ko | (한국어)
|
|
405
|
+
vestra.preferences | language.de | (Deutsch)
|
|
406
|
+
vestra.preferences | language.fr | (Français)
|
|
407
|
+
vestra.preferences | language.es | (Español)
|
|
408
|
+
vestra.info | info.toggle | (Playback Info) | Tab
|
|
409
|
+
vestra.info | info.properties | (Playback Properties…) | Ctrl+F1
|
|
410
|
+
vestra.info | info.update | (Check for Updates…)
|
|
433
411
|
vestra.audio | audio.track.cycle | (Cycle Tracks) | Alt+A
|
|
434
412
|
vestra.audio | audio.channels.stereo | (Stereo)
|
|
435
413
|
vestra.audio | audio.channels.left | (Left Channel)
|
package/dist/docs-tree.json.gz
CHANGED
|
Binary file
|
package/dist/plugin/testing.js
CHANGED
|
@@ -2524,109 +2524,54 @@ export class TestHost {
|
|
|
2524
2524
|
return { enabled, checked, busy: false, reason: enabled ? null : reason };
|
|
2525
2525
|
}
|
|
2526
2526
|
#registerCoreActions() {
|
|
2527
|
+
// As the player declares them (host/src/core_actions.rs `declarations`,
|
|
2528
|
+
// player 0.7.6): title, menu path (empty: the command palette only), order,
|
|
2529
|
+
// group, default bindings, repeat, radio. Close and Play/Pause are in the
|
|
2530
|
+
// menu; the rest left it for the panels and the command palette (seek,
|
|
2531
|
+
// frame and speed with the playback plugin's panel, volume and mute with
|
|
2532
|
+
// the audio plugin's, Previous and Next with the slim menu).
|
|
2527
2533
|
const table = [
|
|
2528
|
-
["stop", ["Close"], 120, "open", ["F4"], false],
|
|
2534
|
+
["stop", "Close", ["Close"], 120, "open", ["F4"], false],
|
|
2529
2535
|
[
|
|
2530
2536
|
"play-pause",
|
|
2531
|
-
|
|
2537
|
+
"Play/Pause",
|
|
2538
|
+
["Play/Pause"],
|
|
2532
2539
|
201,
|
|
2533
2540
|
"domain",
|
|
2534
2541
|
["Space", "Mouse:LeftClick"],
|
|
2535
2542
|
false,
|
|
2536
2543
|
],
|
|
2537
|
-
[
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
],
|
|
2545
|
-
[
|
|
2546
|
-
"next",
|
|
2547
|
-
["Playback", "Next"],
|
|
2548
|
-
203,
|
|
2549
|
-
"domain",
|
|
2550
|
-
["PageDown", "Mouse:X1"],
|
|
2551
|
-
false,
|
|
2552
|
-
],
|
|
2553
|
-
[
|
|
2554
|
-
"frame-back",
|
|
2555
|
-
["Playback", "Seek", "Previous Frame"],
|
|
2556
|
-
204,
|
|
2557
|
-
"frame",
|
|
2558
|
-
["D"],
|
|
2559
|
-
true,
|
|
2560
|
-
],
|
|
2561
|
-
[
|
|
2562
|
-
"frame-forward",
|
|
2563
|
-
["Playback", "Seek", "Next Frame"],
|
|
2564
|
-
205,
|
|
2565
|
-
"frame",
|
|
2566
|
-
["F"],
|
|
2567
|
-
true,
|
|
2568
|
-
],
|
|
2569
|
-
[
|
|
2570
|
-
"seek-backward",
|
|
2571
|
-
["Playback", "Seek", "Back 5 s"],
|
|
2572
|
-
210,
|
|
2573
|
-
"step",
|
|
2574
|
-
["ArrowLeft"],
|
|
2575
|
-
true,
|
|
2576
|
-
],
|
|
2577
|
-
[
|
|
2578
|
-
"seek-forward",
|
|
2579
|
-
["Playback", "Seek", "Forward 5 s"],
|
|
2580
|
-
211,
|
|
2581
|
-
"step",
|
|
2582
|
-
["ArrowRight"],
|
|
2583
|
-
true,
|
|
2584
|
-
],
|
|
2585
|
-
[
|
|
2586
|
-
"rate-normal",
|
|
2587
|
-
["Playback", "Speed", "Normal"],
|
|
2588
|
-
220,
|
|
2589
|
-
"domain",
|
|
2590
|
-
["Z"],
|
|
2591
|
-
false,
|
|
2592
|
-
true,
|
|
2593
|
-
],
|
|
2594
|
-
[
|
|
2595
|
-
"rate-down",
|
|
2596
|
-
["Playback", "Speed", "Slower 0.1"],
|
|
2597
|
-
221,
|
|
2598
|
-
"domain",
|
|
2599
|
-
["X"],
|
|
2600
|
-
false,
|
|
2601
|
-
],
|
|
2602
|
-
[
|
|
2603
|
-
"rate-up",
|
|
2604
|
-
["Playback", "Speed", "Faster 0.1"],
|
|
2605
|
-
222,
|
|
2606
|
-
"domain",
|
|
2607
|
-
["C"],
|
|
2608
|
-
false,
|
|
2609
|
-
],
|
|
2544
|
+
["previous", "Previous", [], 0, "domain", ["PageUp", "Mouse:X2"], false],
|
|
2545
|
+
["next", "Next", [], 0, "domain", ["PageDown", "Mouse:X1"], false],
|
|
2546
|
+
["frame-back", "Previous Frame", [], 0, "domain", ["D"], true],
|
|
2547
|
+
["frame-forward", "Next Frame", [], 0, "domain", ["F"], true],
|
|
2548
|
+
["seek-backward", "Back 5 s", [], 0, "domain", ["ArrowLeft"], true],
|
|
2549
|
+
["seek-forward", "Forward 5 s", [], 0, "domain", ["ArrowRight"], true],
|
|
2550
|
+
["rate-normal", "Normal", [], 0, "domain", ["Z"], false, true],
|
|
2551
|
+
["rate-down", "Slower 0.1", [], 0, "domain", ["X"], false],
|
|
2552
|
+
["rate-up", "Faster 0.1", [], 0, "domain", ["C"], false],
|
|
2610
2553
|
[
|
|
2611
2554
|
"volume-up",
|
|
2612
|
-
|
|
2613
|
-
|
|
2555
|
+
"Volume +",
|
|
2556
|
+
[],
|
|
2557
|
+
0,
|
|
2614
2558
|
"domain",
|
|
2615
2559
|
["ArrowUp", "Mouse:WheelUp"],
|
|
2616
2560
|
true,
|
|
2617
2561
|
],
|
|
2618
2562
|
[
|
|
2619
2563
|
"volume-down",
|
|
2620
|
-
|
|
2621
|
-
|
|
2564
|
+
"Volume −",
|
|
2565
|
+
[],
|
|
2566
|
+
0,
|
|
2622
2567
|
"domain",
|
|
2623
2568
|
["ArrowDown", "Mouse:WheelDown"],
|
|
2624
2569
|
true,
|
|
2625
2570
|
],
|
|
2626
|
-
["mute",
|
|
2571
|
+
["mute", "Mute", [], 0, "domain", ["M"], false],
|
|
2627
2572
|
];
|
|
2628
2573
|
const host = this;
|
|
2629
|
-
for (const [id, fixed, order, group, bindings, repeat, radio] of table) {
|
|
2574
|
+
for (const [id, fixed, path, order, group, bindings, repeat, radio,] of table) {
|
|
2630
2575
|
// The seek items carry the step (`setStepSeek`): the player
|
|
2631
2576
|
// registers them again when it changes (core_actions.rs `seek_title`).
|
|
2632
2577
|
const seek = id === "seek-forward"
|
|
@@ -2634,13 +2579,11 @@ export class TestHost {
|
|
|
2634
2579
|
: id === "seek-backward"
|
|
2635
2580
|
? "Back"
|
|
2636
2581
|
: null;
|
|
2637
|
-
const
|
|
2582
|
+
const titleOf = () => seek === null
|
|
2638
2583
|
? fixed
|
|
2639
|
-
:
|
|
2640
|
-
...fixed.slice(0, -1),
|
|
2641
|
-
`${seek} ${String(Math.round(host.stepSeek * 1000) / 1000)} s`,
|
|
2642
|
-
];
|
|
2584
|
+
: `${seek} ${String(Math.round(host.stepSeek * 1000) / 1000)} s`;
|
|
2643
2585
|
const declaration = {
|
|
2586
|
+
path,
|
|
2644
2587
|
order,
|
|
2645
2588
|
group,
|
|
2646
2589
|
radio: radio ?? false,
|
|
@@ -2648,22 +2591,22 @@ export class TestHost {
|
|
|
2648
2591
|
repeat,
|
|
2649
2592
|
};
|
|
2650
2593
|
Object.defineProperties(declaration, {
|
|
2651
|
-
title: { get:
|
|
2652
|
-
path: { get: pathOf, enumerable: true },
|
|
2594
|
+
title: { get: titleOf, enumerable: true },
|
|
2653
2595
|
});
|
|
2654
2596
|
const command = {
|
|
2655
2597
|
declaration,
|
|
2656
2598
|
// The player's own words in the player's language.
|
|
2657
2599
|
get display() {
|
|
2658
|
-
const
|
|
2659
|
-
const leaf = path.at(-1);
|
|
2600
|
+
const leaf = titleOf();
|
|
2660
2601
|
const step = /^(Back|Forward) (\S+) s$/.exec(leaf);
|
|
2661
2602
|
const title = step
|
|
2662
2603
|
? host.#hostText(`${step[1]} {} s`, [step[2]])
|
|
2663
2604
|
: host.#hostText(leaf);
|
|
2664
2605
|
return {
|
|
2665
2606
|
title,
|
|
2666
|
-
path:
|
|
2607
|
+
path: path.length
|
|
2608
|
+
? [...path.slice(0, -1).map((s) => host.#hostText(s)), title]
|
|
2609
|
+
: [],
|
|
2667
2610
|
};
|
|
2668
2611
|
},
|
|
2669
2612
|
get state() {
|
|
@@ -4403,8 +4346,9 @@ export class TestHost {
|
|
|
4403
4346
|
if (this.commands.has(id))
|
|
4404
4347
|
throw commandConflict("owner/localId already registered");
|
|
4405
4348
|
// The player's own commands beside the core actions (host/actions.rs
|
|
4406
|
-
// `host_declarations`: Toggle Fullscreen, Quit and
|
|
4407
|
-
// menu), which take part in conflicts and the total
|
|
4349
|
+
// `host_declarations`: Toggle Fullscreen, Command Palette…, Quit and
|
|
4350
|
+
// four outside the menu), which take part in conflicts and the total
|
|
4351
|
+
// like any other.
|
|
4408
4352
|
const hostOnly = BUILTIN_COMMANDS.filter((row) => row.owner === "host" && !this.coreCommands.has(`host/${row.id}`));
|
|
4409
4353
|
// A path may not repeat another command's (the player's own
|
|
4410
4354
|
// included) nor be a submenu of one, or one of its submenus.
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vestra Player SDK
|
|
2
2
|
|
|
3
|
-
> @vestra-player/sdk 1.6.
|
|
3
|
+
> @vestra-player/sdk 1.6.17: write plugins for Vestra Player in TypeScript (plugin API `vestra/1`). A plugin is a folder with `manifest.json` and an entry module whose default export `activate(plugin)` the player calls. The documentation is a tree of short pages read by path, like `go doc`: the same pages and API as https://vestrasys.github.io/vestra-player-sdk/.
|
|
4
4
|
|
|
5
5
|
## Read the documentation
|
|
6
6
|
|