Is there a way to play music/video from eg. iTunes library inside an ionic app?
If so, could I also copy the files to my local app directory?
I’d like to embed them in videogular and be able to slow down , speed up, set cue points etc…
Is there a way to play music/video from eg. iTunes library inside an ionic app?
If so, could I also copy the files to my local app directory?
I’d like to embed them in videogular and be able to slow down , speed up, set cue points etc…
I don’t know if you can programmatically access iTunes library on your smartphone, but you can do that for other folders.
First use Cordova File API plugin to access a filesystem and scan it for media files.
Then you will need to use Cordova Audio plugin.
Find them all here including working examples: http://www.gajotres.net/useful-cordova-plugins-for-your-ionic-application-examples/
afaik you can indeed only access the application directory with the cordova file plugin.
For others who are searching…
Here’s a plugin that picks songs from the ios music library.
(haven’t tried yet)
iTunes music is stored by me on my phone with the Audio Converter for Windows, the songs are saved in common audio format for my entertainment. And I uolaod them to apps I like. Hope it is helpful.