vyrplay 0.0.0-stage → 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 ADDED
@@ -0,0 +1,25 @@
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,3 +1,59 @@
1
- # Temporary Holding Version
1
+ # VyrPlay
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Custom HTML5 video player — MP4, HLS, multi-quality, multi-subtitle, separate audio.
4
+
5
+ **License: proprietary (not open source).** See `LICENSE`.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install vyrplay
11
+ ```
12
+
13
+ `hls.js` is included as a dependency — **no need** to install it separately.
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ import { VyrPlay } from 'vyrplay';
19
+ import 'vyrplay/style.css';
20
+
21
+ const player = new VyrPlay('#player', {
22
+ title: 'Episode 1',
23
+ sources: [
24
+ { type: 'hls', url: 'https://cdn.example.com/master.m3u8', label: 'Auto' },
25
+ ],
26
+ tracks: [
27
+ { src: 'https://cdn.example.com/id.vtt', label: 'Indonesia', default: true },
28
+ ],
29
+ features: {
30
+ quality: true,
31
+ subtitles: true,
32
+ pip: true,
33
+ lockUi: true,
34
+ holdToSpeed: true,
35
+ volume: true,
36
+ seekButtons: true,
37
+ settings: true,
38
+ back: false,
39
+ },
40
+ });
41
+ ```
42
+
43
+ ```html
44
+ <div id="player" style="width:100%;aspect-ratio:16/9;position:relative"></div>
45
+ ```
46
+
47
+ ## Options
48
+
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 |
56
+
57
+ ## License
58
+
59
+ Proprietary. All rights reserved. Not open source.