@munsonlabs/video-player 0.2.2 → 0.2.3
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/README.md +67 -5
- package/dist/chunks/{ads-CF9PWPJJ.mjs → ads-BV769SMr.mjs} +1 -1
- package/dist/{elements/chunks/brightcove-DUITad7n.mjs → chunks/brightcove-rNI-XRxB.mjs} +1 -1
- package/dist/chunks/constants-zR-UwEWY.mjs +1 -0
- package/dist/chunks/dailymotion-gEquA4h5.mjs +1 -0
- package/dist/chunks/embedShared-duyOYFQN.mjs +1 -0
- package/dist/chunks/jwplayer-WIkwoJTA.mjs +1 -0
- package/dist/chunks/{sourceHelpers-CAGxjbbu.mjs → sourceHelpers-rbs6D6ZG.mjs} +1 -1
- package/dist/chunks/{vimeo-BNsFVvtc.mjs → vimeo-WJYDJPA3.mjs} +1 -1
- package/dist/chunks/youtube-DbJ-IrvP.mjs +1 -0
- package/dist/elements/chunks/{ads-CF9PWPJJ.mjs → ads-BV769SMr.mjs} +1 -1
- package/dist/{chunks/brightcove-DUITad7n.mjs → elements/chunks/brightcove-rNI-XRxB.mjs} +1 -1
- package/dist/elements/chunks/constants-zR-UwEWY.mjs +1 -0
- package/dist/elements/chunks/dailymotion-gEquA4h5.mjs +1 -0
- package/dist/elements/chunks/embedShared-duyOYFQN.mjs +1 -0
- package/dist/elements/chunks/jwplayer-WIkwoJTA.mjs +1 -0
- package/dist/elements/chunks/{sourceHelpers-CAGxjbbu.mjs → sourceHelpers-rbs6D6ZG.mjs} +1 -1
- package/dist/elements/chunks/{vimeo-BNsFVvtc.mjs → vimeo-WJYDJPA3.mjs} +1 -1
- package/dist/elements/chunks/youtube-DbJ-IrvP.mjs +1 -0
- package/dist/elements/controls.css +1 -1
- package/dist/elements/controls.mjs +1 -1
- package/dist/elements/core.css +1 -1
- package/dist/elements/core.d.mts +7 -6
- package/dist/elements/core.mjs +1 -1
- package/dist/elements/index.d.mts +7 -6
- package/dist/elements/index.mjs +1 -1
- package/dist/elements/style.css +1 -1
- package/dist/index.d.mts +66 -63
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -4
- package/dist/chunks/constants-BUQXC_ZT.mjs +0 -1
- package/dist/chunks/dailymotion-CwCwD6rN.mjs +0 -1
- package/dist/chunks/embedShared-DgFZ58OV.mjs +0 -1
- package/dist/chunks/jwplayer-BxpEGj9-.mjs +0 -1
- package/dist/chunks/youtube-B7s74nf6.mjs +0 -1
- package/dist/elements/chunks/constants-BUQXC_ZT.mjs +0 -1
- package/dist/elements/chunks/dailymotion-CwCwD6rN.mjs +0 -1
- package/dist/elements/chunks/embedShared-DgFZ58OV.mjs +0 -1
- package/dist/elements/chunks/jwplayer-BxpEGj9-.mjs +0 -1
- 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,29 @@ 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;
|
|
160
161
|
}
|
|
161
|
-
type PinCorner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
162
|
-
interface VideoStateDetail {
|
|
162
|
+
export type PinCorner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
163
|
+
export interface VideoStateDetail {
|
|
163
164
|
currentSrc: string | null;
|
|
164
165
|
isPlaying: boolean;
|
|
165
166
|
}
|
|
166
|
-
interface VideoToggleDetail {
|
|
167
|
+
export interface VideoToggleDetail {
|
|
167
168
|
src: string;
|
|
168
169
|
}
|
|
169
|
-
type VideoEntry = PlayerProps;
|
|
170
|
-
interface VideoSelectDetail extends VideoEntry {
|
|
170
|
+
export type VideoEntry = PlayerProps;
|
|
171
|
+
export interface VideoSelectDetail extends VideoEntry {
|
|
171
172
|
fromGesture?: boolean;
|
|
172
173
|
}
|
|
173
|
-
interface TranscriptCue {
|
|
174
|
+
export interface TranscriptCue {
|
|
174
175
|
time: number;
|
|
175
176
|
end?: number;
|
|
176
177
|
text: string;
|
|
177
178
|
}
|
|
178
|
-
interface PlayerHandle {
|
|
179
|
+
export interface PlayerHandle {
|
|
179
180
|
isPlaying: boolean;
|
|
180
181
|
togglePlay(): void;
|
|
181
182
|
hasEnded: boolean;
|
|
@@ -276,7 +277,7 @@ interface UseHudReturn {
|
|
|
276
277
|
onMouseMove: () => void;
|
|
277
278
|
onMouseLeave: () => void;
|
|
278
279
|
openControls: () => void;
|
|
279
|
-
closeControls: () => void;
|
|
280
|
+
closeControls: (immediate?: boolean) => void;
|
|
280
281
|
keepOpen: () => void;
|
|
281
282
|
suppressMouseLeave: (ms?: number) => void;
|
|
282
283
|
}
|
|
@@ -304,7 +305,7 @@ interface UseForwardedPlayerReturn {
|
|
|
304
305
|
playerRef: Ref<PlayerContext | null>;
|
|
305
306
|
forwarded: ForwardedPlayer;
|
|
306
307
|
}
|
|
307
|
-
declare function useForwardedPlayer(guard?: (key: MethodKey) => boolean | Promise<boolean>): UseForwardedPlayerReturn;
|
|
308
|
+
export declare function useForwardedPlayer(guard?: (key: MethodKey) => boolean | Promise<boolean>): UseForwardedPlayerReturn;
|
|
308
309
|
//#endregion
|
|
309
310
|
//#region src/components/VideoPlayer.vue.d.ts
|
|
310
311
|
type __VLS_Props$2 = PlayerProps & {
|
|
@@ -337,6 +338,7 @@ declare const __VLS_export$17: import("vue").DefineComponent<__VLS_Props$2, Forw
|
|
|
337
338
|
payload: Record<string, unknown> | string;
|
|
338
339
|
action: PlayerAction | null;
|
|
339
340
|
disableTapCapture: boolean;
|
|
341
|
+
disableKeyboardShortcuts: boolean;
|
|
340
342
|
controls: boolean;
|
|
341
343
|
playInView: boolean;
|
|
342
344
|
hasPlaylist: boolean;
|
|
@@ -354,9 +356,6 @@ type __VLS_Props$1 = {
|
|
|
354
356
|
declare function playNext(fromGesture?: boolean): void;
|
|
355
357
|
declare function playPrevious(fromGesture?: boolean): void;
|
|
356
358
|
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
359
|
retry: () => Promise<void>;
|
|
361
360
|
togglePlay: () => Promise<void>;
|
|
362
361
|
seek: (val: number) => Promise<void>;
|
|
@@ -367,11 +366,9 @@ declare const __VLS_export$16: import("vue").DefineComponent<__VLS_Props$1, {
|
|
|
367
366
|
toggleLoop: () => Promise<void>;
|
|
368
367
|
toggleAdMute: () => Promise<void>;
|
|
369
368
|
setPlaybackRate: (rate: number) => Promise<void>;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
supportsPip: import("vue").ComputedRef<boolean>;
|
|
374
|
-
isPipActive: import("vue").ComputedRef<boolean>;
|
|
369
|
+
setCaptionTrack: (index: number | null) => Promise<void>;
|
|
370
|
+
setQuality: (index: number | null) => Promise<void>;
|
|
371
|
+
togglePip: () => Promise<void>;
|
|
375
372
|
isPlaying: import("vue").ComputedRef<boolean>;
|
|
376
373
|
hasEnded: import("vue").ComputedRef<boolean>;
|
|
377
374
|
isReady: import("vue").ComputedRef<boolean>;
|
|
@@ -396,10 +393,15 @@ declare const __VLS_export$16: import("vue").DefineComponent<__VLS_Props$1, {
|
|
|
396
393
|
isFullscreen: import("vue").ComputedRef<boolean>;
|
|
397
394
|
isFullscreenPending: import("vue").ComputedRef<boolean>;
|
|
398
395
|
supportsPlaybackRate: import("vue").ComputedRef<boolean>;
|
|
396
|
+
supportsCaptions: import("vue").ComputedRef<boolean>;
|
|
399
397
|
captionTracks: import("vue").ComputedRef<CaptionTrackInfo[]>;
|
|
400
398
|
activeCaptionIndex: import("vue").ComputedRef<number | null>;
|
|
399
|
+
supportsQuality: import("vue").ComputedRef<boolean>;
|
|
401
400
|
qualityLevels: import("vue").ComputedRef<QualityLevelInfo[]>;
|
|
402
401
|
currentQualityIndex: import("vue").ComputedRef<number | null>;
|
|
402
|
+
isAutoQuality: import("vue").ComputedRef<boolean>;
|
|
403
|
+
supportsPip: import("vue").ComputedRef<boolean>;
|
|
404
|
+
isPipActive: import("vue").ComputedRef<boolean>;
|
|
403
405
|
isNativeUi: import("vue").ComputedRef<boolean>;
|
|
404
406
|
playNext: typeof playNext;
|
|
405
407
|
playPrevious: typeof playPrevious;
|
|
@@ -457,14 +459,14 @@ interface ResolvedPlayerProps {
|
|
|
457
459
|
}
|
|
458
460
|
//#endregion
|
|
459
461
|
//#region src/components/controls/Scrubber.vue.d.ts
|
|
460
|
-
declare var __VLS_1$
|
|
462
|
+
declare var __VLS_1$11: {
|
|
461
463
|
scrubbing: boolean;
|
|
462
464
|
percent: number;
|
|
463
465
|
previewSeconds: number;
|
|
464
466
|
formatTime: (seconds: number) => string;
|
|
465
467
|
};
|
|
466
468
|
type __VLS_Slots$12 = {} & {
|
|
467
|
-
preview?: (props: typeof __VLS_1$
|
|
469
|
+
preview?: (props: typeof __VLS_1$11) => any;
|
|
468
470
|
};
|
|
469
471
|
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
472
|
declare const __VLS_export$12: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
@@ -476,13 +478,13 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
476
478
|
};
|
|
477
479
|
//#endregion
|
|
478
480
|
//#region src/components/controls/PlayButton.vue.d.ts
|
|
479
|
-
declare var __VLS_1$
|
|
481
|
+
declare var __VLS_1$10: {
|
|
480
482
|
isPlaying: boolean;
|
|
481
483
|
hasEnded: boolean;
|
|
482
484
|
isError: boolean;
|
|
483
485
|
};
|
|
484
486
|
type __VLS_Slots$11 = {} & {
|
|
485
|
-
default?: (props: typeof __VLS_1$
|
|
487
|
+
default?: (props: typeof __VLS_1$10) => any;
|
|
486
488
|
};
|
|
487
489
|
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
490
|
declare const __VLS_export$11: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
@@ -494,11 +496,11 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
494
496
|
};
|
|
495
497
|
//#endregion
|
|
496
498
|
//#region src/components/controls/MuteButton.vue.d.ts
|
|
497
|
-
declare var __VLS_1$
|
|
499
|
+
declare var __VLS_1$9: {
|
|
498
500
|
isMuted: boolean;
|
|
499
501
|
};
|
|
500
502
|
type __VLS_Slots$10 = {} & {
|
|
501
|
-
default?: (props: typeof __VLS_1$
|
|
503
|
+
default?: (props: typeof __VLS_1$9) => any;
|
|
502
504
|
};
|
|
503
505
|
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
506
|
declare const __VLS_export$10: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
@@ -510,11 +512,11 @@ type __VLS_WithSlots$10<T, S> = T & {
|
|
|
510
512
|
};
|
|
511
513
|
//#endregion
|
|
512
514
|
//#region src/components/controls/FullscreenButton.vue.d.ts
|
|
513
|
-
declare var __VLS_1$
|
|
515
|
+
declare var __VLS_1$8: {
|
|
514
516
|
isFullscreen: boolean;
|
|
515
517
|
};
|
|
516
518
|
type __VLS_Slots$9 = {} & {
|
|
517
|
-
default?: (props: typeof __VLS_1$
|
|
519
|
+
default?: (props: typeof __VLS_1$8) => any;
|
|
518
520
|
};
|
|
519
521
|
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
522
|
declare const __VLS_export$9: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
@@ -526,9 +528,9 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
526
528
|
};
|
|
527
529
|
//#endregion
|
|
528
530
|
//#region src/components/controls/Buffering.vue.d.ts
|
|
529
|
-
declare var __VLS_1$
|
|
531
|
+
declare var __VLS_1$7: {};
|
|
530
532
|
type __VLS_Slots$8 = {} & {
|
|
531
|
-
default?: (props: typeof __VLS_1$
|
|
533
|
+
default?: (props: typeof __VLS_1$7) => any;
|
|
532
534
|
};
|
|
533
535
|
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
536
|
declare const __VLS_export$8: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
@@ -540,11 +542,11 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
540
542
|
};
|
|
541
543
|
//#endregion
|
|
542
544
|
//#region src/components/controls/LoopButton.vue.d.ts
|
|
543
|
-
declare var __VLS_1$
|
|
545
|
+
declare var __VLS_1$6: {
|
|
544
546
|
isLooping: boolean;
|
|
545
547
|
};
|
|
546
548
|
type __VLS_Slots$7 = {} & {
|
|
547
|
-
default?: (props: typeof __VLS_1$
|
|
549
|
+
default?: (props: typeof __VLS_1$6) => any;
|
|
548
550
|
};
|
|
549
551
|
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
552
|
declare const __VLS_export$7: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
@@ -556,11 +558,11 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
556
558
|
};
|
|
557
559
|
//#endregion
|
|
558
560
|
//#region src/components/controls/PipButton.vue.d.ts
|
|
559
|
-
declare var __VLS_1$
|
|
561
|
+
declare var __VLS_1$5: {
|
|
560
562
|
isPipActive: boolean;
|
|
561
563
|
};
|
|
562
564
|
type __VLS_Slots$6 = {} & {
|
|
563
|
-
default?: (props: typeof __VLS_1$
|
|
565
|
+
default?: (props: typeof __VLS_1$5) => any;
|
|
564
566
|
};
|
|
565
567
|
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
568
|
declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
@@ -572,13 +574,13 @@ type __VLS_WithSlots$6<T, S> = T & {
|
|
|
572
574
|
};
|
|
573
575
|
//#endregion
|
|
574
576
|
//#region src/components/controls/CaptionsButton.vue.d.ts
|
|
575
|
-
declare var __VLS_1$
|
|
577
|
+
declare var __VLS_1$4: {
|
|
576
578
|
currentLabel: string;
|
|
577
579
|
tracks: CaptionTrackInfo[];
|
|
578
580
|
activeIndex: number | null;
|
|
579
581
|
};
|
|
580
582
|
type __VLS_Slots$5 = {} & {
|
|
581
|
-
default?: (props: typeof __VLS_1$
|
|
583
|
+
default?: (props: typeof __VLS_1$4) => any;
|
|
582
584
|
};
|
|
583
585
|
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
586
|
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
@@ -590,14 +592,14 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
590
592
|
};
|
|
591
593
|
//#endregion
|
|
592
594
|
//#region src/components/controls/QualityButton.vue.d.ts
|
|
593
|
-
declare var __VLS_1$
|
|
595
|
+
declare var __VLS_1$3: {
|
|
594
596
|
currentLabel: string;
|
|
595
597
|
levels: QualityLevelInfo[];
|
|
596
598
|
currentIndex: number | null;
|
|
597
599
|
isAuto: boolean;
|
|
598
600
|
};
|
|
599
601
|
type __VLS_Slots$4 = {} & {
|
|
600
|
-
default?: (props: typeof __VLS_1$
|
|
602
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
601
603
|
};
|
|
602
604
|
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
605
|
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
@@ -609,13 +611,13 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
609
611
|
};
|
|
610
612
|
//#endregion
|
|
611
613
|
//#region src/components/controls/PlaybackRateButton.vue.d.ts
|
|
612
|
-
declare var __VLS_1$
|
|
614
|
+
declare var __VLS_1$2: {
|
|
613
615
|
currentLabel: string;
|
|
614
616
|
rate: number;
|
|
615
617
|
rates: number[];
|
|
616
618
|
};
|
|
617
619
|
type __VLS_Slots$3 = {} & {
|
|
618
|
-
default?: (props: typeof __VLS_1$
|
|
620
|
+
default?: (props: typeof __VLS_1$2) => any;
|
|
619
621
|
};
|
|
620
622
|
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
623
|
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
@@ -627,11 +629,11 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
627
629
|
};
|
|
628
630
|
//#endregion
|
|
629
631
|
//#region src/components/controls/VolumeSlider.vue.d.ts
|
|
630
|
-
declare var __VLS_1$
|
|
632
|
+
declare var __VLS_1$1: {
|
|
631
633
|
percent: number;
|
|
632
634
|
};
|
|
633
635
|
type __VLS_Slots$2 = {} & {
|
|
634
|
-
default?: (props: typeof __VLS_1$
|
|
636
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
635
637
|
};
|
|
636
638
|
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
639
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -646,14 +648,14 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
646
648
|
declare function fmtTime(s: number, round?: boolean): string;
|
|
647
649
|
//#endregion
|
|
648
650
|
//#region src/components/controls/TimeDisplay.vue.d.ts
|
|
649
|
-
declare var __VLS_1
|
|
651
|
+
declare var __VLS_1: {
|
|
650
652
|
isLive: boolean;
|
|
651
653
|
current: number;
|
|
652
654
|
total: number;
|
|
653
655
|
formatTime: typeof fmtTime;
|
|
654
656
|
};
|
|
655
657
|
type __VLS_Slots$1 = {} & {
|
|
656
|
-
default?: (props: typeof __VLS_1
|
|
658
|
+
default?: (props: typeof __VLS_1) => any;
|
|
657
659
|
};
|
|
658
660
|
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
661
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -668,14 +670,14 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
668
670
|
type __VLS_Props = ResolvedPlayerProps & {
|
|
669
671
|
cues?: TranscriptCue[] | string;
|
|
670
672
|
};
|
|
671
|
-
declare var
|
|
673
|
+
declare var __VLS_11: {
|
|
672
674
|
cue: TranscriptCue;
|
|
673
675
|
index: number;
|
|
674
676
|
isActive: boolean;
|
|
675
677
|
formatTime: typeof fmtTime;
|
|
676
678
|
};
|
|
677
679
|
type __VLS_Slots = {} & {
|
|
678
|
-
default?: (props: typeof
|
|
680
|
+
default?: (props: typeof __VLS_11) => any;
|
|
679
681
|
};
|
|
680
682
|
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
683
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -687,11 +689,11 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
687
689
|
};
|
|
688
690
|
//#endregion
|
|
689
691
|
//#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;
|
|
692
|
+
export declare function registerMatcher(matcher: Matcher): void;
|
|
693
|
+
export declare function getPlatform(url: string): string;
|
|
694
|
+
export declare function registerEmbedAdapter(key: string, factory: EmbedAdapterFactory): void;
|
|
695
|
+
export declare function registerSourceResolver(key: string, resolver: SourceResolver): void;
|
|
696
|
+
export declare function registerPlatform(config: PlatformConfig): void;
|
|
695
697
|
//#endregion
|
|
696
698
|
//#region src/composables/controls/useScrubber.d.ts
|
|
697
699
|
interface UseScrubberReturn {
|
|
@@ -700,34 +702,35 @@ interface UseScrubberReturn {
|
|
|
700
702
|
previewSeconds: ComputedRef<number>;
|
|
701
703
|
onInput: (e: Event) => void;
|
|
702
704
|
onChange: (e: Event) => void;
|
|
705
|
+
onTouchEnd: (e: TouchEvent) => void;
|
|
703
706
|
}
|
|
704
|
-
declare function useScrubber(player: Ref<PlayerHandle | null | undefined>): UseScrubberReturn;
|
|
707
|
+
export declare function useScrubber(player: Ref<PlayerHandle | null | undefined>): UseScrubberReturn;
|
|
705
708
|
//#endregion
|
|
706
709
|
//#region src/composables/overlay/useCaptions.d.ts
|
|
707
710
|
interface UseCaptionsReturn {
|
|
708
711
|
cycleCaptionTrack: () => void;
|
|
709
712
|
currentCaptionLabel: () => string;
|
|
710
713
|
}
|
|
711
|
-
declare function useCaptions(player: PlayerHandle): UseCaptionsReturn;
|
|
714
|
+
export declare function useCaptions(player: PlayerHandle): UseCaptionsReturn;
|
|
712
715
|
//#endregion
|
|
713
716
|
//#region src/composables/overlay/useQuality.d.ts
|
|
714
717
|
interface UseQualityReturn {
|
|
715
718
|
cycleQuality: () => void;
|
|
716
719
|
currentQualityLabel: () => string;
|
|
717
720
|
}
|
|
718
|
-
declare function useQuality(player: PlayerHandle): UseQualityReturn;
|
|
721
|
+
export declare function useQuality(player: PlayerHandle): UseQualityReturn;
|
|
719
722
|
//#endregion
|
|
720
723
|
//#region src/composables/overlay/usePlaybackRate.d.ts
|
|
721
724
|
interface UsePlaybackRateReturn {
|
|
722
725
|
cycleRate: () => void;
|
|
723
726
|
fmtRate: (rate: number) => string;
|
|
724
727
|
}
|
|
725
|
-
declare function usePlaybackRate(player: PlayerHandle): UsePlaybackRateReturn;
|
|
728
|
+
export declare function usePlaybackRate(player: PlayerHandle): UsePlaybackRateReturn;
|
|
726
729
|
//#endregion
|
|
727
730
|
//#region src/composables/exposePlayerOnElement.d.ts
|
|
728
|
-
declare function exposePlayerOnElement(el: Element, player: object | null | undefined): void;
|
|
731
|
+
export declare function exposePlayerOnElement(el: Element, player: object | null | undefined): void;
|
|
729
732
|
//#endregion
|
|
730
733
|
//#region src/index.d.ts
|
|
731
734
|
declare const VideoPlayerPlugin: Plugin;
|
|
732
735
|
//#endregion
|
|
733
|
-
export { _default as Buffering,
|
|
736
|
+
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 };
|