@v360-tech/v360-player 1.4.3 → 1.4.10
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 +23 -40
- 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
|
-
###
|
|
116
|
-
|
|
117
|
-
```html
|
|
118
|
-
<v360-player video-src="video.m3u8"></v360-player>
|
|
119
|
-
```
|
|
115
|
+
### Framework Usage Examples
|
|
120
116
|
|
|
121
|
-
|
|
117
|
+
#### React/Next.js
|
|
122
118
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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