Hi
I’m creating an audioplayer skill modified from the podcast player tutorial/template.
I’m having an issue with getOffsetInMilliseconds(), which is returning zero after playback is stopped.
Here’s the Alexa handler - which does execute at the correct point, but returns zero.
'AlexaSkill.PlaybackStopped'() {
console.log('playback stopped. progress = ' + this.$alexaSkill.$audioPlayer.getOffsetInMilliseconds())
let currentIndex = this.$user.$data.currentIndex;
this.$user.$data.items[currentIndex].currentProgress = this.$alexaSkill.$audioPlayer.getOffsetInMilliseconds();
},
Any ideas?