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 CHANGED
@@ -1,21 +1,25 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 VyrPlay
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
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-sub, separate audio.
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
- ## Quick start
5
+ **License: proprietary (not open source).** See `LICENSE`.
6
+
7
+ ## Install
7
8
 
8
9
  ```bash
9
- npm i vyrplay hls.js
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: 'ID', srclang: 'id', default: true },
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
- ## Local demo
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
- ## Production notes
47
+ ## Options
55
48
 
56
- - You host the **player**; you host (or CDN) the **media**. This is not a video server.
57
- - Browser DevTools can always see client JS and media URLs. Use short-lived signed URLs for protection, not “obscure the bundle”.
58
- - Set `features.back: true` only inside your app chrome; keep `false` for embeds.
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
- MIT
59
+ Proprietary. All rights reserved. Not open source.