@v360-tech/v360-player 1.7.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +161 -55
- package/dist/types/components/v360-player.d.ts +82 -0
- package/dist/types/icons/index.d.ts +3 -0
- package/dist/types/main.d.ts +2 -2
- package/dist/types/player/auto-hide-controller.d.ts +17 -0
- package/dist/types/player/format.d.ts +1 -0
- package/dist/types/player/fullscreen.d.ts +4 -0
- package/dist/types/player/playback-rates.d.ts +4 -0
- package/dist/types/player/stream-controller.d.ts +29 -0
- package/dist/types/player/styles.d.ts +1 -0
- package/dist/types/player/templates.d.ts +12 -0
- package/dist/types/player/types.d.ts +1 -0
- package/dist/types/player/volume.d.ts +1 -0
- package/dist/v360-player.browser.js +312 -268
- package/dist/v360-player.js +853 -498
- package/package.json +2 -4
- package/dist/types/components/V360Player.d.ts +0 -61
- /package/dist/types/styles/{progressBar.d.ts → progress-bar.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v360-tech/v360-player",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A lightweight, customizable HLS video player web component with built-in controls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/v360-player.browser.js",
|
|
@@ -51,14 +51,12 @@
|
|
|
51
51
|
"release:tag": "git commit -m \"$npm_package_version\" -- package.json && git tag \"v$npm_package_version\""
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/jquery": "^3.5.33",
|
|
55
54
|
"@types/node": "^24.3.1",
|
|
56
55
|
"typescript": "~5.8.3",
|
|
57
56
|
"vite": "^7.1.2"
|
|
58
57
|
},
|
|
59
58
|
"dependencies": {
|
|
60
|
-
"hls.js": "^1.6.11"
|
|
61
|
-
"jquery": "^3.7.1"
|
|
59
|
+
"hls.js": "^1.6.11"
|
|
62
60
|
},
|
|
63
61
|
"packageManager": "yarn@4.18.1+sha512.b2e1e7524f654f2749d32b4ebcb4622473cb5bcbc485df2007e12a154e50162a4d795526768bc5f5b8f81717bfd79deb2472813d86fb5ae2eb551fa9c872b08f"
|
|
64
62
|
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare class V360Player extends HTMLElement {
|
|
2
|
-
private progressBarStyle;
|
|
3
|
-
private _hls?;
|
|
4
|
-
private _videoPlayer?;
|
|
5
|
-
private background;
|
|
6
|
-
private _autoPlay;
|
|
7
|
-
private _streamLoaded;
|
|
8
|
-
private _startLevel;
|
|
9
|
-
private _hideControlsTimer?;
|
|
10
|
-
private _pointerOverControls;
|
|
11
|
-
private readonly controlsHideDelay;
|
|
12
|
-
private static readonly defaultSpeeds;
|
|
13
|
-
private static readonly minSpeed;
|
|
14
|
-
private static readonly maxSpeed;
|
|
15
|
-
private _failed;
|
|
16
|
-
private _manifestParsed;
|
|
17
|
-
private _networkRetried;
|
|
18
|
-
private _mediaRecoveries;
|
|
19
|
-
private _listenersStarted;
|
|
20
|
-
private isValidProgressBarStyle;
|
|
21
|
-
private readonly svgIcons;
|
|
22
|
-
constructor();
|
|
23
|
-
private static readonly booleanProperties;
|
|
24
|
-
get autoPlay(): boolean;
|
|
25
|
-
set autoPlay(value: boolean);
|
|
26
|
-
get showTimeDisplay(): boolean;
|
|
27
|
-
set showTimeDisplay(value: boolean);
|
|
28
|
-
get showSpeedControl(): boolean;
|
|
29
|
-
set showSpeedControl(value: boolean);
|
|
30
|
-
get autoHideControls(): boolean;
|
|
31
|
-
set autoHideControls(value: boolean);
|
|
32
|
-
get debug(): boolean;
|
|
33
|
-
set debug(value: boolean);
|
|
34
|
-
private log;
|
|
35
|
-
private fail;
|
|
36
|
-
private upgradeProperties;
|
|
37
|
-
private setupAutoHide;
|
|
38
|
-
private showControls;
|
|
39
|
-
private scheduleControlsHide;
|
|
40
|
-
private hideControls;
|
|
41
|
-
static get observedAttributes(): string[];
|
|
42
|
-
attributeChangedCallback(name: string, _oldValue: string, newValue: string): void;
|
|
43
|
-
connectedCallback(): Promise<void>;
|
|
44
|
-
private renderProgressBar;
|
|
45
|
-
private render;
|
|
46
|
-
private initializePlayer;
|
|
47
|
-
private initializeHls;
|
|
48
|
-
private autoplay;
|
|
49
|
-
private startListeners;
|
|
50
|
-
private play;
|
|
51
|
-
private pause;
|
|
52
|
-
private forward;
|
|
53
|
-
private backward;
|
|
54
|
-
private toggleFullscreen;
|
|
55
|
-
private parseSpeeds;
|
|
56
|
-
private updatePlayPauseButton;
|
|
57
|
-
private renderSpeedLabel;
|
|
58
|
-
private formatTime;
|
|
59
|
-
private updateControlsColor;
|
|
60
|
-
disconnectedCallback(): void;
|
|
61
|
-
}
|
|
File without changes
|