CHANGELOG
25.01.2018 Updated to Angular 5 / Ionic 3.9.2
UPDATE Nov 8th 2017
I don't have time to keep up with all the questions/issues so please don't send me requests to my personal email address.
Brief notes about some of the issues reported lately
- Keep in mind that in certain scenarios you might be better off using standard HTML 5 audio components instead of this plugin
- The plugin allows for simultaneous playback (multiple tracks), you are responsible for stopping / resuming playback responding to events
- Some audio formats / codecs may not be supported, you might need to convert your audio files
Ionic Audio for Ionic 3
An audio player plugin for Ionic that works out of the box in the browser and device using an underlying audio provider depending on the environment. When running inside the browser the plugin will default to a Web Audio provider, whereas on a device it will switch to Cordova Media if cordova-plugin-media is available, otherwise falls back to web audio.
If you've found this project useful please consider donating to support further development. Thank you!
API Docs
Demo
Installation
Make sure you have Ionic and Angular installed.
npm install --save ionic-audio
For Ionic 3:
npm install --save ionic-audio@3.2.0
; /** * Sample custom factory function to use with ionic-audio */
Usage
Import and inject AudioProvider
where needed (optional):
;;
Add components to views:
{{audio.title}} ⚬ {{audio.artist}}
Ionic 1.x
The source code for Ionic 1.x See http://arielfaur.github.io/ionic-audio/index.html for Demo and Installation
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Thank you, contributors!
Author
- Ariel Faur @arielfaur
License
This project is licensed under the MIT License - see the LICENSE.md file for details