@v360-tech/v360-player 1.4.3 → 1.4.5

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.
Files changed (2) hide show
  1. package/README.md +23 -40
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -112,26 +112,24 @@ This package provides two optimized builds:
112
112
 
113
113
  ## Examples
114
114
 
115
- ### Minimal Player
116
-
117
- ```html
118
- <v360-player video-src="video.m3u8"></v360-player>
119
- ```
115
+ ### Framework Usage Examples
120
116
 
121
- ### Player with Time Display
117
+ #### React/Next.js
122
118
 
123
- ````html
124
- ### Framework Usage Examples #### React/Next.js ```jsx import { useEffect } from
125
- 'react'; import '@v360-tech/v360-player'; export default function VideoPlayer()
126
- { return (
127
- <v360-player
128
- video-src="video.m3u8"
129
- poster-src="poster.jpg"
130
- show-time-display
131
- show-speed-control
132
- />
133
- ); }
134
- ````
119
+ ```jsx
120
+ import { useEffect } from "react";
121
+ import "@v360-tech/v360-player";
122
+ export default function VideoPlayer() {
123
+ return (
124
+ <v360-player
125
+ video-src="video.m3u8"
126
+ poster-src="poster.jpg"
127
+ show-time-display
128
+ show-speed-control
129
+ />
130
+ );
131
+ }
132
+ ```
135
133
 
136
134
  #### Vue.js
137
135
 
@@ -165,14 +163,18 @@ import "@v360-tech/v360-player";
165
163
  />
166
164
  ```
167
165
 
166
+ ### Minimal Player
167
+
168
+ ```html
169
+ <v360-player video-src="video.m3u8"></v360-player>
170
+ ```
171
+
168
172
  ### With Time Display
169
173
 
170
174
  ```html
171
175
  <v360-player video-src="video.m3u8" show-time-display> </v360-player>
172
176
  ```
173
177
 
174
- ````
175
-
176
178
  ### Full-Featured Player
177
179
 
178
180
  ```html
@@ -188,7 +190,7 @@ import "@v360-tech/v360-player";
188
190
  progress-bar-style="dual-layer"
189
191
  >
190
192
  </v360-player>
191
- ````
193
+ ```
192
194
 
193
195
  ### Progress Bar Styles
194
196
 
@@ -232,25 +234,6 @@ Clean style with an animated wave indicator.
232
234
  ></v360-player>
233
235
  ```
234
236
 
235
- #### chapters
236
-
237
- Includes chapter markers with labels.
238
-
239
- ```html
240
- <v360-player video-src="video.m3u8" progress-bar-style="chapters"></v360-player>
241
- ```
242
-
243
- #### floating-preview
244
-
245
- Shows a preview thumbnail on hover.
246
-
247
- ```html
248
- <v360-player
249
- video-src="video.m3u8"
250
- progress-bar-style="floating-preview"
251
- ></v360-player>
252
- ```
253
-
254
237
  ## Browser Support
255
238
 
256
239
  - Chrome/Edge (latest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v360-tech/v360-player",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
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",