@munsonlabs/video-player 0.2.2 → 0.2.4

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 (41) hide show
  1. package/README.md +92 -28
  2. package/dist/chunks/{ads-CF9PWPJJ.mjs → ads-BV769SMr.mjs} +1 -1
  3. package/dist/{elements/chunks/brightcove-DUITad7n.mjs → chunks/brightcove-rNI-XRxB.mjs} +1 -1
  4. package/dist/chunks/constants-zR-UwEWY.mjs +1 -0
  5. package/dist/chunks/dailymotion-gEquA4h5.mjs +1 -0
  6. package/dist/chunks/embedShared-duyOYFQN.mjs +1 -0
  7. package/dist/chunks/jwplayer-WIkwoJTA.mjs +1 -0
  8. package/dist/chunks/{sourceHelpers-CAGxjbbu.mjs → sourceHelpers-rbs6D6ZG.mjs} +1 -1
  9. package/dist/chunks/{vimeo-BNsFVvtc.mjs → vimeo-WJYDJPA3.mjs} +1 -1
  10. package/dist/chunks/youtube-DbJ-IrvP.mjs +1 -0
  11. package/dist/elements/chunks/{ads-CF9PWPJJ.mjs → ads-BV769SMr.mjs} +1 -1
  12. package/dist/{chunks/brightcove-DUITad7n.mjs → elements/chunks/brightcove-rNI-XRxB.mjs} +1 -1
  13. package/dist/elements/chunks/constants-zR-UwEWY.mjs +1 -0
  14. package/dist/elements/chunks/dailymotion-gEquA4h5.mjs +1 -0
  15. package/dist/elements/chunks/embedShared-duyOYFQN.mjs +1 -0
  16. package/dist/elements/chunks/jwplayer-WIkwoJTA.mjs +1 -0
  17. package/dist/elements/chunks/{sourceHelpers-CAGxjbbu.mjs → sourceHelpers-rbs6D6ZG.mjs} +1 -1
  18. package/dist/elements/chunks/{vimeo-BNsFVvtc.mjs → vimeo-WJYDJPA3.mjs} +1 -1
  19. package/dist/elements/chunks/youtube-DbJ-IrvP.mjs +1 -0
  20. package/dist/elements/controls.css +1 -1
  21. package/dist/elements/controls.mjs +1 -1
  22. package/dist/elements/core.css +1 -1
  23. package/dist/elements/core.d.mts +10 -6
  24. package/dist/elements/core.mjs +1 -1
  25. package/dist/elements/index.d.mts +10 -6
  26. package/dist/elements/index.mjs +1 -1
  27. package/dist/elements/style.css +1 -1
  28. package/dist/index.d.mts +71 -63
  29. package/dist/index.mjs +1 -1
  30. package/dist/style.css +1 -1
  31. package/package.json +6 -4
  32. package/dist/chunks/constants-BUQXC_ZT.mjs +0 -1
  33. package/dist/chunks/dailymotion-CwCwD6rN.mjs +0 -1
  34. package/dist/chunks/embedShared-DgFZ58OV.mjs +0 -1
  35. package/dist/chunks/jwplayer-BxpEGj9-.mjs +0 -1
  36. package/dist/chunks/youtube-B7s74nf6.mjs +0 -1
  37. package/dist/elements/chunks/constants-BUQXC_ZT.mjs +0 -1
  38. package/dist/elements/chunks/dailymotion-CwCwD6rN.mjs +0 -1
  39. package/dist/elements/chunks/embedShared-DgFZ58OV.mjs +0 -1
  40. package/dist/elements/chunks/jwplayer-BxpEGj9-.mjs +0 -1
  41. package/dist/elements/chunks/youtube-B7s74nf6.mjs +0 -1
package/dist/index.d.mts CHANGED
@@ -87,15 +87,15 @@ type PlatformConfig = Pick<Matcher, 'key' | 'test'> & ({
87
87
  });
88
88
  //#endregion
89
89
  //#region src/types/player.d.ts
90
- type BuiltinAction = 'mute' | 'loop' | 'autoplay';
91
- interface CustomAction {
90
+ export type BuiltinAction = 'mute' | 'loop' | 'autoplay';
91
+ export interface CustomAction {
92
92
  icon: string;
93
93
  label: string;
94
94
  onClick: () => void;
95
95
  }
96
- type PlayerAction = BuiltinAction | CustomAction;
97
- type StateChangeType = 'play' | 'pause' | 'ended' | 'seeked' | 'error' | 'adstart' | 'adend' | 'volumechange' | 'ratechange' | 'captionchange' | 'qualitychange' | 'pipchange' | 'loopchange' | 'firstQuartile' | 'midpoint' | 'thirdQuartile' | 'controlsopen' | 'controlsclose' | 'stageopen' | 'stageclose' | 'bufferstart' | 'bufferend' | 'timeupdate' | 'tap';
98
- interface StateChangeEvent {
96
+ export type PlayerAction = BuiltinAction | CustomAction;
97
+ export type StateChangeType = 'play' | 'pause' | 'ended' | 'seeked' | 'error' | 'adstart' | 'adend' | 'volumechange' | 'ratechange' | 'captionchange' | 'qualitychange' | 'pipchange' | 'loopchange' | 'firstQuartile' | 'midpoint' | 'thirdQuartile' | 'controlsopen' | 'controlsclose' | 'stageopen' | 'stageclose' | 'bufferstart' | 'bufferend' | 'timeupdate' | 'tap';
98
+ export interface StateChangeEvent {
99
99
  type: StateChangeType;
100
100
  currentTime: number;
101
101
  duration: number;
@@ -113,7 +113,7 @@ interface StateChangeEvent {
113
113
  element?: HTMLElement | null;
114
114
  payload?: Record<string, unknown>;
115
115
  }
116
- interface HeaderBiddingAdUnit {
116
+ export interface HeaderBiddingAdUnit {
117
117
  code: string;
118
118
  mediaTypes: {
119
119
  video: Record<string, unknown>;
@@ -123,19 +123,19 @@ interface HeaderBiddingAdUnit {
123
123
  params?: Record<string, unknown>;
124
124
  }>;
125
125
  }
126
- interface HeaderBiddingConfig {
126
+ export interface HeaderBiddingConfig {
127
127
  adUnit: HeaderBiddingAdUnit;
128
128
  params?: Record<string, string>;
129
129
  timeoutMs?: number;
130
130
  }
131
- interface CaptionTrackDef {
131
+ export interface CaptionTrackDef {
132
132
  src: string;
133
133
  kind?: 'captions' | 'subtitles';
134
134
  srclang?: string;
135
135
  label?: string;
136
136
  default?: boolean;
137
137
  }
138
- interface PlayerProps {
138
+ export interface PlayerProps {
139
139
  src: string;
140
140
  title?: string;
141
141
  poster?: string;
@@ -154,28 +154,32 @@ interface PlayerProps {
154
154
  payload?: Record<string, unknown> | string;
155
155
  action?: PlayerAction | null;
156
156
  disableTapCapture?: boolean;
157
+ disableKeyboardShortcuts?: boolean;
157
158
  controls?: boolean;
158
159
  playInView?: boolean;
159
160
  pin?: PinCorner;
161
+ loop?: boolean;
162
+ preload?: PreloadMode;
160
163
  }
161
- type PinCorner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
162
- interface VideoStateDetail {
164
+ export type PinCorner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
165
+ export type PreloadMode = 'none' | 'metadata' | 'auto';
166
+ export interface VideoStateDetail {
163
167
  currentSrc: string | null;
164
168
  isPlaying: boolean;
165
169
  }
166
- interface VideoToggleDetail {
170
+ export interface VideoToggleDetail {
167
171
  src: string;
168
172
  }
169
- type VideoEntry = PlayerProps;
170
- interface VideoSelectDetail extends VideoEntry {
173
+ export type VideoEntry = PlayerProps;
174
+ export interface VideoSelectDetail extends VideoEntry {
171
175
  fromGesture?: boolean;
172
176
  }
173
- interface TranscriptCue {
177
+ export interface TranscriptCue {
174
178
  time: number;
175
179
  end?: number;
176
180
  text: string;
177
181
  }
178
- interface PlayerHandle {
182
+ export interface PlayerHandle {
179
183
  isPlaying: boolean;
180
184
  togglePlay(): void;
181
185
  hasEnded: boolean;
@@ -276,7 +280,7 @@ interface UseHudReturn {
276
280
  onMouseMove: () => void;
277
281
  onMouseLeave: () => void;
278
282
  openControls: () => void;
279
- closeControls: () => void;
283
+ closeControls: (immediate?: boolean) => void;
280
284
  keepOpen: () => void;
281
285
  suppressMouseLeave: (ms?: number) => void;
282
286
  }
@@ -304,7 +308,7 @@ interface UseForwardedPlayerReturn {
304
308
  playerRef: Ref<PlayerContext | null>;
305
309
  forwarded: ForwardedPlayer;
306
310
  }
307
- declare function useForwardedPlayer(guard?: (key: MethodKey) => boolean | Promise<boolean>): UseForwardedPlayerReturn;
311
+ export declare function useForwardedPlayer(guard?: (key: MethodKey) => boolean | Promise<boolean>): UseForwardedPlayerReturn;
308
312
  //#endregion
309
313
  //#region src/components/VideoPlayer.vue.d.ts
310
314
  type __VLS_Props$2 = PlayerProps & {
@@ -337,8 +341,11 @@ declare const __VLS_export$17: import("vue").DefineComponent<__VLS_Props$2, Forw
337
341
  payload: Record<string, unknown> | string;
338
342
  action: PlayerAction | null;
339
343
  disableTapCapture: boolean;
344
+ disableKeyboardShortcuts: boolean;
340
345
  controls: boolean;
341
346
  playInView: boolean;
347
+ loop: boolean;
348
+ preload: PreloadMode;
342
349
  hasPlaylist: boolean;
343
350
  hasNext: boolean;
344
351
  hasPrevious: boolean;
@@ -354,9 +361,6 @@ type __VLS_Props$1 = {
354
361
  declare function playNext(fromGesture?: boolean): void;
355
362
  declare function playPrevious(fromGesture?: boolean): void;
356
363
  declare const __VLS_export$16: import("vue").DefineComponent<__VLS_Props$1, {
357
- setCaptionTrack: (index: number | null) => Promise<void>;
358
- setQuality: (index: number | null) => Promise<void>;
359
- togglePip: () => Promise<void>;
360
364
  retry: () => Promise<void>;
361
365
  togglePlay: () => Promise<void>;
362
366
  seek: (val: number) => Promise<void>;
@@ -367,11 +371,9 @@ declare const __VLS_export$16: import("vue").DefineComponent<__VLS_Props$1, {
367
371
  toggleLoop: () => Promise<void>;
368
372
  toggleAdMute: () => Promise<void>;
369
373
  setPlaybackRate: (rate: number) => Promise<void>;
370
- supportsCaptions: import("vue").ComputedRef<boolean>;
371
- supportsQuality: import("vue").ComputedRef<boolean>;
372
- isAutoQuality: import("vue").ComputedRef<boolean>;
373
- supportsPip: import("vue").ComputedRef<boolean>;
374
- isPipActive: import("vue").ComputedRef<boolean>;
374
+ setCaptionTrack: (index: number | null) => Promise<void>;
375
+ setQuality: (index: number | null) => Promise<void>;
376
+ togglePip: () => Promise<void>;
375
377
  isPlaying: import("vue").ComputedRef<boolean>;
376
378
  hasEnded: import("vue").ComputedRef<boolean>;
377
379
  isReady: import("vue").ComputedRef<boolean>;
@@ -396,10 +398,15 @@ declare const __VLS_export$16: import("vue").DefineComponent<__VLS_Props$1, {
396
398
  isFullscreen: import("vue").ComputedRef<boolean>;
397
399
  isFullscreenPending: import("vue").ComputedRef<boolean>;
398
400
  supportsPlaybackRate: import("vue").ComputedRef<boolean>;
401
+ supportsCaptions: import("vue").ComputedRef<boolean>;
399
402
  captionTracks: import("vue").ComputedRef<CaptionTrackInfo[]>;
400
403
  activeCaptionIndex: import("vue").ComputedRef<number | null>;
404
+ supportsQuality: import("vue").ComputedRef<boolean>;
401
405
  qualityLevels: import("vue").ComputedRef<QualityLevelInfo[]>;
402
406
  currentQualityIndex: import("vue").ComputedRef<number | null>;
407
+ isAutoQuality: import("vue").ComputedRef<boolean>;
408
+ supportsPip: import("vue").ComputedRef<boolean>;
409
+ isPipActive: import("vue").ComputedRef<boolean>;
403
410
  isNativeUi: import("vue").ComputedRef<boolean>;
404
411
  playNext: typeof playNext;
405
412
  playPrevious: typeof playPrevious;
@@ -457,14 +464,14 @@ interface ResolvedPlayerProps {
457
464
  }
458
465
  //#endregion
459
466
  //#region src/components/controls/Scrubber.vue.d.ts
460
- declare var __VLS_1$12: {
467
+ declare var __VLS_1$11: {
461
468
  scrubbing: boolean;
462
469
  percent: number;
463
470
  previewSeconds: number;
464
471
  formatTime: (seconds: number) => string;
465
472
  };
466
473
  type __VLS_Slots$12 = {} & {
467
- preview?: (props: typeof __VLS_1$12) => any;
474
+ preview?: (props: typeof __VLS_1$11) => any;
468
475
  };
469
476
  declare const __VLS_base$12: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
470
477
  declare const __VLS_export$12: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
@@ -476,13 +483,13 @@ type __VLS_WithSlots$12<T, S> = T & {
476
483
  };
477
484
  //#endregion
478
485
  //#region src/components/controls/PlayButton.vue.d.ts
479
- declare var __VLS_1$11: {
486
+ declare var __VLS_1$10: {
480
487
  isPlaying: boolean;
481
488
  hasEnded: boolean;
482
489
  isError: boolean;
483
490
  };
484
491
  type __VLS_Slots$11 = {} & {
485
- default?: (props: typeof __VLS_1$11) => any;
492
+ default?: (props: typeof __VLS_1$10) => any;
486
493
  };
487
494
  declare const __VLS_base$11: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
488
495
  declare const __VLS_export$11: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
@@ -494,11 +501,11 @@ type __VLS_WithSlots$11<T, S> = T & {
494
501
  };
495
502
  //#endregion
496
503
  //#region src/components/controls/MuteButton.vue.d.ts
497
- declare var __VLS_1$10: {
504
+ declare var __VLS_1$9: {
498
505
  isMuted: boolean;
499
506
  };
500
507
  type __VLS_Slots$10 = {} & {
501
- default?: (props: typeof __VLS_1$10) => any;
508
+ default?: (props: typeof __VLS_1$9) => any;
502
509
  };
503
510
  declare const __VLS_base$10: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
504
511
  declare const __VLS_export$10: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
@@ -510,11 +517,11 @@ type __VLS_WithSlots$10<T, S> = T & {
510
517
  };
511
518
  //#endregion
512
519
  //#region src/components/controls/FullscreenButton.vue.d.ts
513
- declare var __VLS_1$9: {
520
+ declare var __VLS_1$8: {
514
521
  isFullscreen: boolean;
515
522
  };
516
523
  type __VLS_Slots$9 = {} & {
517
- default?: (props: typeof __VLS_1$9) => any;
524
+ default?: (props: typeof __VLS_1$8) => any;
518
525
  };
519
526
  declare const __VLS_base$9: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
520
527
  declare const __VLS_export$9: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
@@ -526,9 +533,9 @@ type __VLS_WithSlots$9<T, S> = T & {
526
533
  };
527
534
  //#endregion
528
535
  //#region src/components/controls/Buffering.vue.d.ts
529
- declare var __VLS_1$8: {};
536
+ declare var __VLS_1$7: {};
530
537
  type __VLS_Slots$8 = {} & {
531
- default?: (props: typeof __VLS_1$8) => any;
538
+ default?: (props: typeof __VLS_1$7) => any;
532
539
  };
533
540
  declare const __VLS_base$8: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
534
541
  declare const __VLS_export$8: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
@@ -540,11 +547,11 @@ type __VLS_WithSlots$8<T, S> = T & {
540
547
  };
541
548
  //#endregion
542
549
  //#region src/components/controls/LoopButton.vue.d.ts
543
- declare var __VLS_1$7: {
550
+ declare var __VLS_1$6: {
544
551
  isLooping: boolean;
545
552
  };
546
553
  type __VLS_Slots$7 = {} & {
547
- default?: (props: typeof __VLS_1$7) => any;
554
+ default?: (props: typeof __VLS_1$6) => any;
548
555
  };
549
556
  declare const __VLS_base$7: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
550
557
  declare const __VLS_export$7: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
@@ -556,11 +563,11 @@ type __VLS_WithSlots$7<T, S> = T & {
556
563
  };
557
564
  //#endregion
558
565
  //#region src/components/controls/PipButton.vue.d.ts
559
- declare var __VLS_1$6: {
566
+ declare var __VLS_1$5: {
560
567
  isPipActive: boolean;
561
568
  };
562
569
  type __VLS_Slots$6 = {} & {
563
- default?: (props: typeof __VLS_1$6) => any;
570
+ default?: (props: typeof __VLS_1$5) => any;
564
571
  };
565
572
  declare const __VLS_base$6: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
566
573
  declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
@@ -572,13 +579,13 @@ type __VLS_WithSlots$6<T, S> = T & {
572
579
  };
573
580
  //#endregion
574
581
  //#region src/components/controls/CaptionsButton.vue.d.ts
575
- declare var __VLS_1$5: {
582
+ declare var __VLS_1$4: {
576
583
  currentLabel: string;
577
584
  tracks: CaptionTrackInfo[];
578
585
  activeIndex: number | null;
579
586
  };
580
587
  type __VLS_Slots$5 = {} & {
581
- default?: (props: typeof __VLS_1$5) => any;
588
+ default?: (props: typeof __VLS_1$4) => any;
582
589
  };
583
590
  declare const __VLS_base$5: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
584
591
  declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
@@ -590,14 +597,14 @@ type __VLS_WithSlots$5<T, S> = T & {
590
597
  };
591
598
  //#endregion
592
599
  //#region src/components/controls/QualityButton.vue.d.ts
593
- declare var __VLS_1$4: {
600
+ declare var __VLS_1$3: {
594
601
  currentLabel: string;
595
602
  levels: QualityLevelInfo[];
596
603
  currentIndex: number | null;
597
604
  isAuto: boolean;
598
605
  };
599
606
  type __VLS_Slots$4 = {} & {
600
- default?: (props: typeof __VLS_1$4) => any;
607
+ default?: (props: typeof __VLS_1$3) => any;
601
608
  };
602
609
  declare const __VLS_base$4: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
603
610
  declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
@@ -609,13 +616,13 @@ type __VLS_WithSlots$4<T, S> = T & {
609
616
  };
610
617
  //#endregion
611
618
  //#region src/components/controls/PlaybackRateButton.vue.d.ts
612
- declare var __VLS_1$3: {
619
+ declare var __VLS_1$2: {
613
620
  currentLabel: string;
614
621
  rate: number;
615
622
  rates: number[];
616
623
  };
617
624
  type __VLS_Slots$3 = {} & {
618
- default?: (props: typeof __VLS_1$3) => any;
625
+ default?: (props: typeof __VLS_1$2) => any;
619
626
  };
620
627
  declare const __VLS_base$3: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
621
628
  declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
@@ -627,11 +634,11 @@ type __VLS_WithSlots$3<T, S> = T & {
627
634
  };
628
635
  //#endregion
629
636
  //#region src/components/controls/VolumeSlider.vue.d.ts
630
- declare var __VLS_1$2: {
637
+ declare var __VLS_1$1: {
631
638
  percent: number;
632
639
  };
633
640
  type __VLS_Slots$2 = {} & {
634
- default?: (props: typeof __VLS_1$2) => any;
641
+ default?: (props: typeof __VLS_1$1) => any;
635
642
  };
636
643
  declare const __VLS_base$2: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
637
644
  declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
@@ -646,14 +653,14 @@ type __VLS_WithSlots$2<T, S> = T & {
646
653
  declare function fmtTime(s: number, round?: boolean): string;
647
654
  //#endregion
648
655
  //#region src/components/controls/TimeDisplay.vue.d.ts
649
- declare var __VLS_1$1: {
656
+ declare var __VLS_1: {
650
657
  isLive: boolean;
651
658
  current: number;
652
659
  total: number;
653
660
  formatTime: typeof fmtTime;
654
661
  };
655
662
  type __VLS_Slots$1 = {} & {
656
- default?: (props: typeof __VLS_1$1) => any;
663
+ default?: (props: typeof __VLS_1) => any;
657
664
  };
658
665
  declare const __VLS_base$1: import("vue").DefineComponent<ResolvedPlayerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResolvedPlayerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
659
666
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
@@ -668,14 +675,14 @@ type __VLS_WithSlots$1<T, S> = T & {
668
675
  type __VLS_Props = ResolvedPlayerProps & {
669
676
  cues?: TranscriptCue[] | string;
670
677
  };
671
- declare var __VLS_1: {
678
+ declare var __VLS_11: {
672
679
  cue: TranscriptCue;
673
680
  index: number;
674
681
  isActive: boolean;
675
682
  formatTime: typeof fmtTime;
676
683
  };
677
684
  type __VLS_Slots = {} & {
678
- default?: (props: typeof __VLS_1) => any;
685
+ default?: (props: typeof __VLS_11) => any;
679
686
  };
680
687
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
681
688
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -687,11 +694,11 @@ type __VLS_WithSlots<T, S> = T & {
687
694
  };
688
695
  //#endregion
689
696
  //#region src/adapters/index.d.ts
690
- declare function registerMatcher(matcher: Matcher): void;
691
- declare function getPlatform(url: string): string;
692
- declare function registerEmbedAdapter(key: string, factory: EmbedAdapterFactory): void;
693
- declare function registerSourceResolver(key: string, resolver: SourceResolver): void;
694
- declare function registerPlatform(config: PlatformConfig): void;
697
+ export declare function registerMatcher(matcher: Matcher): void;
698
+ export declare function getPlatform(url: string): string;
699
+ export declare function registerEmbedAdapter(key: string, factory: EmbedAdapterFactory): void;
700
+ export declare function registerSourceResolver(key: string, resolver: SourceResolver): void;
701
+ export declare function registerPlatform(config: PlatformConfig): void;
695
702
  //#endregion
696
703
  //#region src/composables/controls/useScrubber.d.ts
697
704
  interface UseScrubberReturn {
@@ -700,34 +707,35 @@ interface UseScrubberReturn {
700
707
  previewSeconds: ComputedRef<number>;
701
708
  onInput: (e: Event) => void;
702
709
  onChange: (e: Event) => void;
710
+ onTouchEnd: (e: TouchEvent) => void;
703
711
  }
704
- declare function useScrubber(player: Ref<PlayerHandle | null | undefined>): UseScrubberReturn;
712
+ export declare function useScrubber(player: Ref<PlayerHandle | null | undefined>): UseScrubberReturn;
705
713
  //#endregion
706
714
  //#region src/composables/overlay/useCaptions.d.ts
707
715
  interface UseCaptionsReturn {
708
716
  cycleCaptionTrack: () => void;
709
717
  currentCaptionLabel: () => string;
710
718
  }
711
- declare function useCaptions(player: PlayerHandle): UseCaptionsReturn;
719
+ export declare function useCaptions(player: PlayerHandle): UseCaptionsReturn;
712
720
  //#endregion
713
721
  //#region src/composables/overlay/useQuality.d.ts
714
722
  interface UseQualityReturn {
715
723
  cycleQuality: () => void;
716
724
  currentQualityLabel: () => string;
717
725
  }
718
- declare function useQuality(player: PlayerHandle): UseQualityReturn;
726
+ export declare function useQuality(player: PlayerHandle): UseQualityReturn;
719
727
  //#endregion
720
728
  //#region src/composables/overlay/usePlaybackRate.d.ts
721
729
  interface UsePlaybackRateReturn {
722
730
  cycleRate: () => void;
723
731
  fmtRate: (rate: number) => string;
724
732
  }
725
- declare function usePlaybackRate(player: PlayerHandle): UsePlaybackRateReturn;
733
+ export declare function usePlaybackRate(player: PlayerHandle): UsePlaybackRateReturn;
726
734
  //#endregion
727
735
  //#region src/composables/exposePlayerOnElement.d.ts
728
- declare function exposePlayerOnElement(el: Element, player: object | null | undefined): void;
736
+ export declare function exposePlayerOnElement(el: Element, player: object | null | undefined): void;
729
737
  //#endregion
730
738
  //#region src/index.d.ts
731
739
  declare const VideoPlayerPlugin: Plugin;
732
740
  //#endregion
733
- export { _default as Buffering, BuiltinAction, CaptionTrackDef, type CaptionTrackInfo, _default$1 as CaptionsButton, CustomAction, type EmbedAdapterFactory, type EmbedAdapterOptions, type ForwardedPlayer, _default$2 as FullscreenButton, HeaderBiddingAdUnit, HeaderBiddingConfig, _default$3 as HideMarker, type HudContext, _default$4 as LoopButton, type Matcher, type MediaErrorLike, type MethodKey, _default$5 as MuteButton, PinCorner, _default$6 as PipButton, type PlatformConfig, _default$7 as PlayButton, type PlaybackAdapter, _default$8 as PlaybackRateButton, PlayerAction, type PlayerContext, PlayerHandle, PlayerProps, type PlaylistContext, _default$9 as QualityButton, type QualityLevelInfo, type ResolvedSource, _default$10 as Scrubber, type SourceResolver, StateChangeEvent, StateChangeType, _default$11 as TimeDisplay, _default$12 as Transcript, TranscriptCue, type UseForwardedPlayerReturn, _default$13 as VideoCard, VideoEntry, _default$14 as VideoPlaceholder, _default$15 as VideoPlayer, VideoPlayerPlugin, VideoPlayerPlugin as default, VideoSelectDetail, _default$16 as VideoStage, VideoStateDetail, VideoToggleDetail, _default$17 as VolumeSlider, exposePlayerOnElement, getPlatform, registerEmbedAdapter, registerMatcher, registerPlatform, registerSourceResolver, useCaptions, useForwardedPlayer, usePlaybackRate, useQuality, useScrubber };
741
+ export { _default as Buffering, type CaptionTrackInfo, _default$1 as CaptionsButton, type EmbedAdapterFactory, type EmbedAdapterOptions, type ForwardedPlayer, _default$2 as FullscreenButton, _default$3 as HideMarker, type HudContext, _default$4 as LoopButton, type Matcher, type MediaErrorLike, type MethodKey, _default$5 as MuteButton, _default$6 as PipButton, type PlatformConfig, _default$7 as PlayButton, type PlaybackAdapter, _default$8 as PlaybackRateButton, type PlayerContext, type PlaylistContext, _default$9 as QualityButton, type QualityLevelInfo, type ResolvedSource, _default$10 as Scrubber, type SourceResolver, _default$11 as TimeDisplay, _default$12 as Transcript, type UseForwardedPlayerReturn, _default$13 as VideoCard, _default$14 as VideoPlaceholder, _default$15 as VideoPlayer, VideoPlayerPlugin, VideoPlayerPlugin as default, _default$16 as VideoStage, _default$17 as VolumeSlider };