@devix-technologies/react-gjirafa-vp-player 1.0.26 → 1.0.27
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 +38 -0
- package/dist/react-gjirafa-vp-player.es.js +564 -566
- package/dist/react-gjirafa-vp-player.umd.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -620,6 +620,44 @@ const handleAnalytics = (eventName: string, currentPosition?: number) => {
|
|
|
620
620
|
|
|
621
621
|
## Release Notes
|
|
622
622
|
|
|
623
|
+
### v1.0.27
|
|
624
|
+
- **Fixes:**
|
|
625
|
+
- Fixed `getCurrentVideoData()` to support **2 data sources**: config-based playlist, and single video
|
|
626
|
+
- Fixed `onVideoStarted` callback to correctly return video data for config-based playlists
|
|
627
|
+
- **Features:**
|
|
628
|
+
- Improved video tracking for playlists passed directly via `config` prop
|
|
629
|
+
|
|
630
|
+
### v1.0.26
|
|
631
|
+
- **Fixes:**
|
|
632
|
+
- Fixed **config-based playlist indexing** for vertical players - `onVideoStarted` now correctly reports video index on scroll.
|
|
633
|
+
- Fixed `getCurrentVideoData()` to properly handle playlists passed via `config.video.playlist.videos`.
|
|
634
|
+
- Improved `vpPlayerConfigBuilder` to use correct initial video based on `playlistVideoIndex`.
|
|
635
|
+
- **Refactor:**
|
|
636
|
+
- Removed `fetchedPlaylist` dependency from `useVPPlayerLogic` - all playlist data now flows through config.
|
|
637
|
+
- Cleaned up unused constants (`DEFAULT_PLAYLIST_ID` removed from exports).
|
|
638
|
+
|
|
639
|
+
### v1.0.25 (unpublished)
|
|
640
|
+
|
|
641
|
+
### v1.0.24
|
|
642
|
+
- **Fixes:**
|
|
643
|
+
- Fixed event tracking for vertical players with `isReels={false}`.
|
|
644
|
+
- Unified event listener setup logic - detection now based on `scriptUrl` instead of `isReels` prop.
|
|
645
|
+
- Fixed 400 Bad Request errors for horizontal player tracking by ensuring `projectId` is always included in config.
|
|
646
|
+
- Re-added `ready` and `playlistItem` event listeners for horizontal player navigation.
|
|
647
|
+
- **Features:**
|
|
648
|
+
- Full metadata fetching now works for both vertical and horizontal players.
|
|
649
|
+
- **Refactor:**
|
|
650
|
+
- Changed `DEFAULT_PROJECT_ID` to generic value for better reusability.
|
|
651
|
+
- Replaced `edge.vpplayer.tech` with `host.vpplayer.tech` for better performance.
|
|
652
|
+
|
|
653
|
+
### v1.0.23
|
|
654
|
+
- **Features:**
|
|
655
|
+
- Enhanced **vertical player analytics** with improved event tracking.
|
|
656
|
+
- Added support for passing video arrays directly via `config.video.playlist.videos`.
|
|
657
|
+
- **Fixes:**
|
|
658
|
+
- Fixed duplicate event triggering in vertical player.
|
|
659
|
+
- Improved `player_start` and `player_play` event logic for `player_next`/`player_previous` actions.
|
|
660
|
+
|
|
623
661
|
### v1.0.22
|
|
624
662
|
- **New Features:**
|
|
625
663
|
- Added comprehensive **Analytics Event Callbacks** (`onPlayerStart`, `onPlayerPlay`, `onPlayerPause`, `onPlayerEnd`, etc.).
|