vyrplay 1.0.0 → 1.0.1
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/LICENSE +25 -21
- package/README.md +21 -24
- package/dist/vyrplay.esm.js +30 -1754
- package/dist/vyrplay.umd.js +30 -1794
- package/package.json +14 -14
- package/src/VyrPlay.js +0 -1331
- package/src/engine/MediaEngine.js +0 -369
- package/src/index.js +0 -3
- package/src/ui/styles.css +0 -681
- package/src/ui/template.js +0 -220
- package/src/utils/events.js +0 -25
- package/src/utils/format.js +0 -20
package/LICENSE
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 VyrPlay
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
of
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
PROPRIETARY SOFTWARE LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VyrPlay. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated files ("Software") are the exclusive property
|
|
6
|
+
of the copyright holder.
|
|
7
|
+
|
|
8
|
+
You may use the Software only if you have been granted a valid license by
|
|
9
|
+
the copyright holder (for example: purchase, subscription, or written
|
|
10
|
+
permission).
|
|
11
|
+
|
|
12
|
+
You may NOT, without prior written permission:
|
|
13
|
+
|
|
14
|
+
1. Copy, modify, or redistribute the Software to third parties
|
|
15
|
+
2. Publish the source or bundled files as open source
|
|
16
|
+
3. Sell, sublicense, or rebrand the Software as your own product
|
|
17
|
+
4. Remove or alter copyright / license notices
|
|
18
|
+
|
|
19
|
+
You MAY, under a valid license:
|
|
20
|
+
|
|
21
|
+
1. Install and use the Software in your own applications / websites
|
|
22
|
+
2. Bundle the distributed files (dist/) with your product as needed
|
|
23
|
+
for runtime use by end users of your application
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
package/README.md
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
# VyrPlay
|
|
2
2
|
|
|
3
|
-
Custom HTML5 video player — MP4, HLS, multi-
|
|
4
|
-
Not a wrapper around Video.js or Plyr.
|
|
3
|
+
Custom HTML5 video player — MP4, HLS, multi-quality, multi-subtitle, separate audio.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
**License: proprietary (not open source).** See `LICENSE`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
7
8
|
|
|
8
9
|
```bash
|
|
9
|
-
npm
|
|
10
|
+
npm install vyrplay
|
|
10
11
|
```
|
|
11
12
|
|
|
13
|
+
`hls.js` is included as a dependency — **no need** to install it separately.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
12
17
|
```js
|
|
13
18
|
import { VyrPlay } from 'vyrplay';
|
|
14
19
|
import 'vyrplay/style.css';
|
|
@@ -18,9 +23,8 @@ const player = new VyrPlay('#player', {
|
|
|
18
23
|
sources: [
|
|
19
24
|
{ type: 'hls', url: 'https://cdn.example.com/master.m3u8', label: 'Auto' },
|
|
20
25
|
],
|
|
21
|
-
audio: null, // optional separate audio URL
|
|
22
26
|
tracks: [
|
|
23
|
-
{ src: 'https://cdn.example.com/id.vtt', label: '
|
|
27
|
+
{ src: 'https://cdn.example.com/id.vtt', label: 'Indonesia', default: true },
|
|
24
28
|
],
|
|
25
29
|
features: {
|
|
26
30
|
quality: true,
|
|
@@ -36,27 +40,20 @@ const player = new VyrPlay('#player', {
|
|
|
36
40
|
});
|
|
37
41
|
```
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm run dev
|
|
43
|
-
# http://localhost:5173/ playground
|
|
44
|
-
# http://localhost:5173/demo/ fullscreen
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Build
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm run build
|
|
51
|
-
# → dist/vyrplay.esm.js, vyrplay.umd.js, vyrplay.css
|
|
43
|
+
```html
|
|
44
|
+
<div id="player" style="width:100%;aspect-ratio:16/9;position:relative"></div>
|
|
52
45
|
```
|
|
53
46
|
|
|
54
|
-
##
|
|
47
|
+
## Options
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
| Option | Description |
|
|
50
|
+
|--------|-------------|
|
|
51
|
+
| `sources` | `[{ type: 'mp4'\|'hls', url, label, height }]` |
|
|
52
|
+
| `audio` | Optional separate audio URL |
|
|
53
|
+
| `tracks` | WebVTT subtitle tracks |
|
|
54
|
+
| `features` | Toggle UI features on/off |
|
|
55
|
+
| `title` | Top title text |
|
|
59
56
|
|
|
60
57
|
## License
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
Proprietary. All rights reserved. Not open source.
|