An audio player for Ionic 3 and Angular 4. Works with HTML 5 audio or native audio using Cordova Media plugin.
321
stars
163
forks
source link
Reset isFinished flags to false to ensure onFinish emit fires more than once #138
Open
yoojene opened 7 years ago
Hi @arielfaur, I found that when a track was played to completion a second time after the component loaded, that the
onFinish
emit event never fired.This PR resets the
_isFinished
and_audioTrack.isFinished
tofalse
allowed the event to execute each time without a component reload.