stormcloud-video-player 0.2.4 → 0.2.6
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 +15 -16
- package/dist/stormcloud-vp.min.js +2 -2
- package/lib/index.cjs +66 -14
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +66 -14
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +0 -11
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/player/StormcloudVideoPlayer.d.cts +0 -1
- package/lib/players/HlsPlayer.cjs +0 -11
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +0 -11
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +66 -14
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -314,21 +314,20 @@ new StormcloudVideoPlayer(config: StormcloudVideoPlayerConfig)
|
|
|
314
314
|
|
|
315
315
|
#### Methods
|
|
316
316
|
|
|
317
|
-
| Method
|
|
318
|
-
|
|
|
319
|
-
| `load()`
|
|
320
|
-
| `destroy()`
|
|
321
|
-
| `toggleMute()`
|
|
322
|
-
| `toggleFullscreen()`
|
|
323
|
-
| `isMuted()`
|
|
324
|
-
| `isFullscreen()`
|
|
325
|
-
| `isAdPlaying()`
|
|
326
|
-
| `isShowingAds()`
|
|
327
|
-
| `getCurrentAdIndex()`
|
|
328
|
-
| `getTotalAdsInBreak()`
|
|
329
|
-
| `shouldShowNativeControls()`
|
|
330
|
-
| `getStreamType()`
|
|
331
|
-
| `loadDefaultVastFromAdstorm(url, params?)` | Load VAST tags from Adstorm API | `Promise<void>` |
|
|
317
|
+
| Method | Description | Returns |
|
|
318
|
+
| ---------------------------- | --------------------------------------------- | ------------------ |
|
|
319
|
+
| `load()` | Initialize and start video playback | `Promise<void>` |
|
|
320
|
+
| `destroy()` | Clean up player resources and event listeners | `void` |
|
|
321
|
+
| `toggleMute()` | Toggle video mute state | `void` |
|
|
322
|
+
| `toggleFullscreen()` | Enter/exit fullscreen mode | `Promise<void>` |
|
|
323
|
+
| `isMuted()` | Check if video is currently muted | `boolean` |
|
|
324
|
+
| `isFullscreen()` | Check if player is in fullscreen mode | `boolean` |
|
|
325
|
+
| `isAdPlaying()` | Check if an ad is currently playing | `boolean` |
|
|
326
|
+
| `isShowingAds()` | Check if ads are being shown | `boolean` |
|
|
327
|
+
| `getCurrentAdIndex()` | Get current ad index in pod | `number` |
|
|
328
|
+
| `getTotalAdsInBreak()` | Get total ads in current break | `number` |
|
|
329
|
+
| `shouldShowNativeControls()` | Check if native controls should be shown | `boolean` |
|
|
330
|
+
| `getStreamType()` | Get detected stream type | `'hls' \| 'other'` |
|
|
332
331
|
|
|
333
332
|
#### Configuration Options
|
|
334
333
|
|
|
@@ -708,7 +707,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
708
707
|
|
|
709
708
|
Built with ❤️ by the Stormcloud team
|
|
710
709
|
|
|
711
|
-
### What's New in
|
|
710
|
+
### What's New in v0.2
|
|
712
711
|
|
|
713
712
|
- 🎯 **Professional Architecture**: Modular player system inspired by react-player
|
|
714
713
|
- 🚀 **Automatic Format Detection**: Smart player selection based on video source
|