You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/27 17:15:39 UTC

[GitHub] [cordova-ios] develobert opened a new issue #1101: Media plugin not working after Cordova and Cordova iOS platform upgrades

develobert opened a new issue #1101:
URL: https://github.com/apache/cordova-ios/issues/1101


   ## Problem
   
   Cordova app (jQuery + jQuery mobile) working fine using Cordova 8.1.2 and Cordova iOS 4.5.1. After upgrading Cordova to 10.0.0 and Cordova iOS platform to 6.2.0, I get the following error when creating a Media instance: **ReferenceError: Can't find variable Media**
   
   ### What is expected to happen?
   
   ```
   var my_media = new Media(url);
      my_media.play();
   ```
   That should play sound found at url (external URL in my case).
   
   ### What does actually happen?
   
   The line **var my_media = new Media(url);** gives error **ReferenceError: Can't find variable Media** when debugging via Xcode (in simulator with iOS version 14.4 and in device with iOS 12.x and 14.x).
   
   ## Information
   
   Nothing has changed in the code of the app, only the platform upgrades mentioned above.
   
   ### Command or Code
   
   `var my_media = new Media(url);`
   
   ### Environment, Platform, Device
   
   iPhone 12 iOS 14.4
   iPhone XS Max iOS 14.4
   iPhone 5s 12.x
   
   ### Version information
   
   Cordova 10.0.0
   Cordova iOS 6.2.0
   Xcode 12.4
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org