@vplayer/core 0.1.7 → 0.1.8
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/dist/defaults.d.ts +1 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -24
- package/dist/types.d.ts +0 -26
- package/package.json +1 -1
package/dist/defaults.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PlayerLabels } from './types';
|
|
2
2
|
export declare const defaultPlayerLabels: PlayerLabels;
|
|
3
|
-
/** @see https://iconify.design/icon-sets/lucide/ */
|
|
4
|
-
export declare const defaultPlayerIcons: PlayerIcons;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export type { PlayerSource, SourceKind } from './source-resolver';
|
|
|
15
15
|
export { canUseMSE, canUseNativeHLS, canUseFullscreen, canUsePictureInPicture, canUseTextTracks, getMediaCapabilities, isFiniteDuration, } from './media-capabilities';
|
|
16
16
|
export type { MediaCapabilitiesSnapshot } from './media-capabilities';
|
|
17
17
|
export { formatTime } from './utils';
|
|
18
|
-
export { defaultPlayerLabels
|
|
18
|
+
export { defaultPlayerLabels } from './defaults';
|
|
19
19
|
export { BaseMediaEngine, NativeVideoEngine, HlsMediaEngine, DashMediaEngine } from './media-engine';
|
|
20
20
|
export type { MediaEngine, MediaEngineDimensions, MediaEngineError, MediaEngineEvent, MediaEngineEventHandler, HlsMediaEngineOptions, DashMediaEngineOptions, } from './media-engine';
|
|
21
21
|
export { createMediaStore, getInitialMediaState, selectMedia, selectAudio, selectPreferences, selectUI, selectPlugins, selectThumbnails, selectError, } from './state/slices';
|
|
22
|
-
export type { PlayerOptions, TransformThumbnailVTT, MediaState, MediaRemote, PlayerLabels,
|
|
22
|
+
export type { PlayerOptions, TransformThumbnailVTT, MediaState, MediaRemote, PlayerLabels, PlayerInstance, PlayerSystems, PlayerError, PlaybackStatus, } from './types';
|
|
23
23
|
export type { ControlRegistration, SettingRegistration, LayerRegistration, ContextMenuItem, ContextMenuRegistration, PlayerPlugin, PluginAPI, RemoteRef, PlayerContextRef, FlipState, AspectRatioState, SettingItem, } from './plugin-api';
|
package/dist/index.js
CHANGED
|
@@ -1431,29 +1431,6 @@ var Q = {
|
|
|
1431
1431
|
contextMenuLoop: "Loop",
|
|
1432
1432
|
infoPanel: "Debug stats",
|
|
1433
1433
|
loop: "Loop"
|
|
1434
|
-
}, $ = {
|
|
1435
|
-
play: "lucide:play",
|
|
1436
|
-
pause: "lucide:pause",
|
|
1437
|
-
replay: "lucide:rotate-ccw",
|
|
1438
|
-
skipBack: "lucide:skip-back",
|
|
1439
|
-
skipForward: "lucide:skip-forward",
|
|
1440
|
-
volumeHigh: "lucide:volume-2",
|
|
1441
|
-
volumeLow: "lucide:volume-1",
|
|
1442
|
-
volumeOff: "lucide:volume-x",
|
|
1443
|
-
settings: "lucide:settings-2",
|
|
1444
|
-
pip: "lucide:picture-in-picture-2",
|
|
1445
|
-
miniPlayer: "lucide:minimize-2",
|
|
1446
|
-
close: "lucide:x",
|
|
1447
|
-
fullscreen: "lucide:maximize",
|
|
1448
|
-
fullscreenExit: "lucide:minimize",
|
|
1449
|
-
chevronLeft: "lucide:chevron-left",
|
|
1450
|
-
check: "lucide:check",
|
|
1451
|
-
spinner: "lucide:loader-2",
|
|
1452
|
-
screenshot: "lucide:camera",
|
|
1453
|
-
flip: "lucide:flip-horizontal-2",
|
|
1454
|
-
aspectRatio: "lucide:monitor",
|
|
1455
|
-
info: "lucide:info",
|
|
1456
|
-
loop: "lucide:repeat"
|
|
1457
1434
|
};
|
|
1458
1435
|
//#endregion
|
|
1459
|
-
export { p as BaseMediaEngine, g as DashMediaEngine, t as EventBus, h as HlsMediaEngine, n as HotkeyRegistry, a as I18n, m as NativeVideoEngine, M as STORAGE_KEYS, j as Storage, c as canUseFullscreen, o as canUseMSE, s as canUseNativeHLS, l as canUsePictureInPicture, u as canUseTextTracks, X as createGestureEngine, x as createMediaStore, Y as createPlayer, b as createResolvedMediaEngine,
|
|
1436
|
+
export { p as BaseMediaEngine, g as DashMediaEngine, t as EventBus, h as HlsMediaEngine, n as HotkeyRegistry, a as I18n, m as NativeVideoEngine, M as STORAGE_KEYS, j as Storage, c as canUseFullscreen, o as canUseMSE, s as canUseNativeHLS, l as canUsePictureInPicture, u as canUseTextTracks, X as createGestureEngine, x as createMediaStore, Y as createPlayer, b as createResolvedMediaEngine, Q as defaultPlayerLabels, v as detectSourceKind, I as fetchSubtitles, V as fetchThumbnails, Z as formatTime, L as getActiveCue, S as getInitialMediaState, d as getMediaCapabilities, H as getThumbnailAtTime, f as isFiniteDuration, P as parseSRT, z as parseThumbnailVTT, N as parseTimestamp, F as parseVTT, w as selectAudio, k as selectError, C as selectMedia, D as selectPlugins, T as selectPreferences, O as selectThumbnails, E as selectUI, y as toPlayerSource };
|
package/dist/types.d.ts
CHANGED
|
@@ -12,32 +12,6 @@ import type { MediaState } from './state/slices';
|
|
|
12
12
|
import type { Storage } from './storage';
|
|
13
13
|
import type { SubtitleTrack } from './subtitle-parser';
|
|
14
14
|
export type { MediaState };
|
|
15
|
-
/** Iconify icon identifier, e.g. "lucide:play" or "mdi:play" */
|
|
16
|
-
export type SvgIcon = string;
|
|
17
|
-
export interface PlayerIcons {
|
|
18
|
-
play: SvgIcon;
|
|
19
|
-
pause: SvgIcon;
|
|
20
|
-
replay: SvgIcon;
|
|
21
|
-
skipBack: SvgIcon;
|
|
22
|
-
skipForward: SvgIcon;
|
|
23
|
-
volumeHigh: SvgIcon;
|
|
24
|
-
volumeLow: SvgIcon;
|
|
25
|
-
volumeOff: SvgIcon;
|
|
26
|
-
settings: SvgIcon;
|
|
27
|
-
pip: SvgIcon;
|
|
28
|
-
miniPlayer: SvgIcon;
|
|
29
|
-
close: SvgIcon;
|
|
30
|
-
fullscreen: SvgIcon;
|
|
31
|
-
fullscreenExit: SvgIcon;
|
|
32
|
-
chevronLeft: SvgIcon;
|
|
33
|
-
check: SvgIcon;
|
|
34
|
-
spinner: SvgIcon;
|
|
35
|
-
screenshot: SvgIcon;
|
|
36
|
-
flip: SvgIcon;
|
|
37
|
-
aspectRatio: SvgIcon;
|
|
38
|
-
info: SvgIcon;
|
|
39
|
-
loop: SvgIcon;
|
|
40
|
-
}
|
|
41
15
|
export interface PlayerOptions {
|
|
42
16
|
src: string;
|
|
43
17
|
/** MIME/content type hint used by source provider selection. */
|