joazco opened a new pull request, #404: URL: https://github.com/apache/cordova-plugin-media/pull/404
### Platforms affected All platforms supported by the Cordova Media plugin. ### Motivation and Context This change ensures that when `cordova.platformId` is not defined (e.g., running under Capacitor), the plugin falls back to `Capacitor.getPlatform()` for platform detection. ### Description - Added a small code snippet in `Media.js` to check if `cordova.platformId` is undefined. - If it is, the plugin now uses `Capacitor.getPlatform()` to identify the active platform. ### Testing - Tested on Android and iOS through a Capacitor project to confirm that audio playback still works and the platform is correctly identified. ### Checklist - [x] I've run the tests to see all new and existing tests pass - [x] I added automated test coverage as appropriate for this change - [x] Commit is prefixed with `(android)` or `(ios)` if it specifically applies to one platform - [x] This Pull Request resolves an issue or adds functionality (no open issues linked) - [x] I've updated the documentation if necessary -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org