I used to be able to detect when audio has finished playing by subscribing to this.media.init.then(), now it is undefined. Is there a newer/better way of detecting when audio is done playing or is this a bug?
I need to be able to move perform other actions when a song has finished playing.
//detect when audio has finished playing
isFinished() {
return this.file.init.then(() => {
console.log('finished playing song!');
});
}