-
Notifications
You must be signed in to change notification settings - Fork 21
Sync Main to Dev after 1.4.2 #1183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR synchronizes the main branch with dev after the 1.4.2 release, updating version numbers across all relevant files and implementing several fixes and improvements.
- Updated version number from 1.4.1 to 1.4.2 across all configuration files
- Added Safari/iOS compatibility fixes for video playback and source ordering
- Implemented conditional plugin loading to prevent conflicts and improved analytics tracking
Reviewed Changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| readme.txt | Updated stable tag and added v1.4.2 changelog entries |
| package.json | Bumped version to 1.4.2 |
| godam.php | Updated plugin version and constant definition |
| inc/templates/godam-player.php | Removed hardcoded video source elements |
| inc/classes/class-media-library-ajax.php | Updated @SInCE tag from placeholder to actual version |
| assets/src/js/godam-player/masterSettings.js | Added conditional import for quality levels plugin |
| assets/src/js/godam-player/managers/configurationManager.js | Added Safari/iOS video source reordering logic |
| assets/src/js/godam-player/analytics.js | Updated @SInCE tag from placeholder to actual version |
| assets/src/blocks/godam-player/VideoJS.js | Added conditional import for quality menu plugin |
| admin/class-rtgodam-transcoder-handler.php | Updated @SInCE tag from placeholder to actual version |
| README.md | Updated stable tag to 1.4.2 |
| CHANGELOG.md | Added v1.4.2 changelog entries |
| .github/workflows/release_on_tag.yml | Fixed file path references in release workflow |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| // Only import qualityMenu if not already registered (this will also load qualityLevels as dependency) | ||
| if ( ! videojs.getPlugin( 'qualityMenu' ) ) { | ||
| import( 'videojs-contrib-quality-menu' ); | ||
| } |
Copilot
AI
Sep 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dynamic import() is asynchronous but not awaited. This could cause race conditions where the plugin might not be loaded when needed. Consider using a static import at the top level or properly handle the Promise returned by import().
| // Only import qualityMenu if not already registered (this will also load qualityLevels as dependency) | |
| if ( ! videojs.getPlugin( 'qualityMenu' ) ) { | |
| import( 'videojs-contrib-quality-menu' ); | |
| } | |
| import 'videojs-contrib-quality-menu'; |
No description provided.