ionic-audio | audio player for Ionic | Mobile Application library
kandi X-RAY | ionic-audio Summary
kandi X-RAY | ionic-audio Summary
An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ionic-audio
ionic-audio Key Features
ionic-audio Examples and Code Snippets
Community Discussions
Trending Discussions on ionic-audio
QUESTION
I am developing an Ionic Application for both Android and iOS. I'm using the Ionic Audio plugin (https://www.npmjs.com/package/ionic-audio) and its working find on Android.
However when i tested the application on iOS i got an error that it can not locate the .mp3 file:
My .mp3 file is located in "assets/audio/" and the default link i use and which works perfectly on Android is: "assets/audio/portuguese.mp3".
I tried the same on iOS but it did not work. I tried several path and failed (one of them is in the attached picture). then i tried getting it online through "http://www.xxxxxx.com/portuguese.mp3" and it worked on iOS! so i figured out that it must be the path that is going wrong.
Appreciate any help in locating the right/correct path in order to retrieve the audio .mp3 on iOS.
Thanks a lot!
...ANSWER
Answered 2018-Oct-30 at 22:04Adding cordova-plugin-file https://github.com/apache/cordova-plugin-file to the project fixed it!
QUESTION
I'm trying to run my Ionic app in release mode but am getting a strange error. The app runs fine in non-release mode.
Error: Metadata version mismatch for module /Users/jscotto/Documents/projects/ionic_app/node_modules/ionic-audio/dist/ionic-audio-interfaces.d.ts, found version 4, expected 3
I'm using a plugin called ionic-audio
which seems to use Angular 5, my app uses angular 4 but what doesn't make sense is why it would only not work in release build mode.
Any ideas what could be causing this?
...ANSWER
Answered 2018-Apr-09 at 14:25Downgrading my plugin to Angular 4 worked.
QUESTION
I have used ngx-translate in my ionic3 project. It's working fine in browser using ionic serve .But After build and running it in android it doesn't work.It returns only key from the translate file.
my ionic version used is: ...ANSWER
Answered 2017-Sep-22 at 08:41You're using older version of "@ngx-translate/core": "^7.2.1",
. So you need to use the latest version of it.
QUESTION
I started to get the following error after upgrading my application to the following features. (the code has not changed)
I did not get any errors in the tests, but firebase gave the users the knowledge that they got this error
I did not debug with the firebase console before. Could you help me, please ?
...ANSWER
Answered 2017-Dec-18 at 17:52For this moment Ionic Native does not support 0.9.* version of this plugin, which brings breaking changes. Also, you have two different versions of this plugin:
QUESTION
I am new to both Ionic and Cordova. I'm creating a basic app where I'll have some URLs of audio files that I want users to be able to play. These URLs are fetching from web service. Please help me with this query. Thanks.
Edited after trying your answer:
following is the web service response. There is multiple event.Each event has two different audio that I want to play in one section.
{ "message":"success", "title":"Panchkavani", "error_msg":"", "result":[ {"events_id":null, "image":"", "title":"test pachkavani", "stanak":"https://ionic-audio.s3.amazonaws.com/Message%20in%20a%20bottle.mp3", "mandir":"https://ionic-audio.s3.amazonaws.com/Roxane.mp3","date_added":"Saturday, 13-May-2017","date_time":"01:49 AM"}]}
...ANSWER
Answered 2017-May-05 at 11:36here is a sample . dont forget to install cordova plugin add org.apache.cordova.media for more https://www.thepolyglotdeveloper.com/2014/11/playing-audio-android-ios-ionicframework-app/.this sample slso works only if you add media plugin
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ionic-audio
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page