Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

ngCordova Media on iOS

$
0
0

Hello Guys,
I'm using Media plugin (org.apache.cordova.media) in my application to streaming audio. When I build in Android platform works very fine. But, when I build on iOS, the application execute but the stream (sound) not work.

Analysing the Xcode logs I found this error:

Dec 27 22:30:22 Mac-mini-de-Guilherme RockOnline[2754]: Will use resource 'http://192.198.204.194:9020' from the Internet.
Dec 27 22:30:23 Mac-mini-de-Guilherme RockOnline[2754]: Failed to initialize AVAudioPlayer: The operation couldn’t be completed. (OSStatus error 1954115647.)
Dec 27 22:30:23 Mac-mini-de-Guilherme RockOnline[2754]: THREAD WARNING: ['Media'] took '960.675049' ms. Plugin should use a background thread.

Resuming the logs:

  • The application try to load the streaming from http://192.198.204.194:9020 (works on Android)
  • Failed to initialize AVAudioPlayer The operation couldn’t be completed.
  • THREAD WARNING: ['Media'] took '960.675049' ms. Plugin should use a background thread

But if I try to load a file .mp3, work very fine.

Bellow are my seetings:

  • Cordova CLI: 5.4.1
  • Ionic Version: 1.2.1-nightly-1867
  • Ionic CLI Version: 1.7.12
  • Ionic App Lib Version: 0.6.5
  • ios-deploy version: 1.8.3
  • ios-sim version: 5.0.4
  • OS: Mac OS X El Capitan
  • Node Version: v4.2.4
  • Xcode version: Xcode 7.0.1 Build version 7A1001

Thanks in advance for any help.
Hugs,
Guilherme Couto


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>