arielfaur / ionic-audio

An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
http://arielfaur.github.io/ionic-audio/2.0/index.html
MIT License
321 stars 163 forks source link

Local audio #143

Closed miniportal closed 6 years ago

miniportal commented 7 years ago

I'm trying to play local audio, but nothing happend. Can you show me an example?

zipusbraid91 commented 7 years ago

Just replace the src in the track's list by the src of file Example:

this.myTracks = [ { src: '../../assets/song1.mp3', title: 'Estrellitas y Duendes', artist: 'Juan Luis Guerra', art: '../assets/img/book1.jpg', preload: 'metadata' }]

Eaderibigbe commented 7 years ago

I like to implement something similar but it is working on android not on iPhone. Anyone ablr to get this to work?

zipusbraid91 commented 7 years ago

I've only worked in Android just like you, I have not tried it on iPhone. I give you assurance that Android works. El nov. 1, 2017 7:05 AM, "adedapo" notifications@github.com escribió:

I like to implement something similar but it is working on android not on iPhone. Anyone ablr to get this to work?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arielfaur/ionic-audio/issues/143#issuecomment-341088371, or mute the thread https://github.com/notifications/unsubscribe-auth/AfXWh9Q1J8Pylemt1oBg3kE9pYUFhe1Wks5syF6XgaJpZM4OugBo .

arielfaur commented 6 years ago

168

https://github.com/apache/cordova-plugin-file#file-system-layouts