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

track src from ajax request? #123

Closed scuba303 closed 6 years ago

scuba303 commented 7 years ago

sorry, i am more or less new to inonic. my problem: i can make the audio player work. thats fine. now i want to set the audio src dynamically from an ajax call. when i use this.singleTrack = { src: 'https://archive.org/download/swrembel2010-03-07.tlm170.flac16/swrembel2010-03-07s1t05.mp3', artist: 'Stephane Wrembel', title: 'Stephane Wrembel Live', art: 'assets/img/Stephane.jpg', preload: 'metadata' // tell the plugin to preload metadata such as duration for this track, set to 'none' to turn off }; i can't overwrite src afterwards. if i set this.singleTrack in the ajax success, it seems to be to late.

tbergeron commented 7 years ago

This is related to #106. No progress so far on that, I'll keep you updated if I find anything useful.

rdai commented 6 years ago

Don't know if this is still relevant, almost a year later, please see #188