dayvsonsales opened a new issue #269: iOS: unable to play external .mp3 files 
AVAudioSession setActive:withOptions:error
URL: https://github.com/apache/cordova-plugin-media/issues/269
 
 
   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Should play an external .mp3 file in iOS.
   
   ### What does actually happen?
   
   An error message: 
   
   [AVAudioSession setActive:withOptions:error:]: Deactivating an audio session 
that has running I/O. All I/O should be stopped or paused prior to deactivating 
the audio session.
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   Hi, I'm trying to use Media plugin in my ionic application, but its given an 
error when I call play method after creating an media object.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   ```
   context.fileAudio = context.media.create(audio);
   context.fileAudio.play();
   context.fileAudio.onStatusUpdate.subscribe((status) => {
        //some code
   });
   
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   "@ionic-native/media": "^4.20.0", 
   "cordova-plugin-media": "^5.0.3", 
   
   Tested with iOS 12.0, 13.1 (iPhone 7 and iPhone 11)
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   global packages:
   
       cordova (Cordova CLI) : 8.0.0
   
   local packages:
   
       @ionic/app-scripts : 3.2.4
       Cordova Platforms  : android 6.4.0 ios 5.1.1
       Ionic Framework    : ionic-angular 3.9.9
   
   System:
   
       ios-deploy : 1.9.4
       ios-sim    : 8.0.2
       npm        : 6.4.1
       OS         : macOS
       Xcode      : Xcode 11.3 Build version 11C29
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to