Giter Site home page Giter Site logo

iOS Support about ionic-audio HOT 21 CLOSED

arielfaur avatar arielfaur commented on September 4, 2024
iOS Support

from ionic-audio.

Comments (21)

arielfaur avatar arielfaur commented on September 4, 2024

Hi! Yes it works on iOS ☺️

On Monday, 28 September 2015, Laolu Adeyo [email protected] wrote:

Hi!

I was wondering if this plugin has been tested on iOS yet?


Reply to this email directly or view it on GitHub
#19.

from ionic-audio.

laoluadeyo avatar laoluadeyo commented on September 4, 2024

Hi,
I implemented this last night in a streaming app I was working on, It worked fine on my android but on my iOS device it freezes once I hit the play button. I'm not sure why.

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

What iOS version are you on? iOS will freeze the UI while the track is loading by default, but then the track should start playing. At least that is the behavior I have seen and what others have reported. Do you see any errors in the console?

from ionic-audio.

laoluadeyo avatar laoluadeyo commented on September 4, 2024

Hi, I am using iOS version 7.1.2. When I ran the ionic serve command and opened the console I saw "ionic-audio: missing Cordova Media Plugin. Have you installed the plugin?
Run 'ionic plugin add org.apache.cordova.media'"

But I have already installed the cordova media plugin

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

This will not work with ionic serve. You need to test on your device.
There's an error in the documentation. To make sure you have the latest Media plugin remove it and add it again with:
ionic plugin add cordova-plugin-media

from ionic-audio.

laoluadeyo avatar laoluadeyo commented on September 4, 2024

Hi,
I removed the media plugin and reinstalled it, I ran it on my iOS device, but it still freezes again. It still plays fine on the android

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

Is it an iPhone 4? I've never tested on iOS 7.1.2. Only on iOS 8.4.1 and 9.
You should be able to do remote debugging if you have your iPhone plugged to your dev machine and open Safari as explained here:
http://phonegap-tips.com/articles/debugging-ios-phonegap-apps-with-safaris-web-inspector.html

You can then open your device's console window while your app is running and see if there are any errors.

from ionic-audio.

leonardosalles avatar leonardosalles commented on September 4, 2024

You checked if sound starts play after a minute? If you use this on iOS the app will freeze until all the audio files is downloade.

from ionic-audio.

laoluadeyo avatar laoluadeyo commented on September 4, 2024

I forgot to post but I was able to get it working about a month ago. I think it was because I was trying to access an m4a file not an mp3. Thanks for the help.

from ionic-audio.

leonardosalles avatar leonardosalles commented on September 4, 2024

You're welcome.

from ionic-audio.

NurdinDev avatar NurdinDev commented on September 4, 2024

who I can make play Audio When Screen Is Locked in IOS?

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

You need to enable background audio in xCode

On Sun, Dec 13, 2015 at 6:44 AM, nuruddinbadawi [email protected]
wrote:

who I can make play Audio When Screen Is Locked in IOS?


Reply to this email directly or view it on GitHub
#19 (comment)
.

from ionic-audio.

NurdinDev avatar NurdinDev commented on September 4, 2024

in IOS when start playing its take long time to starting play and spinner is frozen
how to fix this and thanks?

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

There is no fix for that. That's how the Cordova Media works.

from ionic-audio.

badawiZad avatar badawiZad commented on September 4, 2024

hi ..
I have a problem with IOS when to play any Audio " internet link " the app is freeze 10 sec or 15 after that is start play
why ?

from ionic-audio.

NurdinDev avatar NurdinDev commented on September 4, 2024

screen shot 2015-12-23 at 13 48 30

I have problem in ios when play audio app is freezing
please any solution if anyone know how fix this ?

from ionic-audio.

laoluadeyo avatar laoluadeyo commented on September 4, 2024

I think that's just how it works for iOS. Since the cordova media plugin does not support streaming, it is going to freeze until the audio file is completely downloaded. I would suggest using maybe Web Audio API instead
example: https://www.airpair.com/ionic-framework/posts/using-web-audio-api-for-precision-audio-in-ionic

from ionic-audio.

NurdinDev avatar NurdinDev commented on September 4, 2024

Is there a way to solve the freezing problem temporarily?
For example, show loading or something else.

from ionic-audio.

NurdinDev avatar NurdinDev commented on September 4, 2024

who I can allow stop audio in background mode and I enable background mode in xCode and work good
but the problem is I can't pause audio outside application .

from ionic-audio.

arielfaur avatar arielfaur commented on September 4, 2024

You can use MediaManager.stop() as explained here: http://arielfaur.github.io/ionic-audio/#MediaManager

from ionic-audio.

bazimov avatar bazimov commented on September 4, 2024

I think cordova media plugin 2.2 newest version has fixed the issue. And thank you so much @arielfaur for such an awesome project.

from ionic-audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.