setOffsetInMilliseconds in Alexa MP3 vs AAC


#1

I’m trying to go forward with my audio file but in MP3 works and with AAC format doesn’t. The code is the same, why is this happening?


#2

My code is:
First of all, I stop the stream, then I get the offset, and after that, I restart the stream with the new offset

 this.$alexaSkill.$audioPlayer.stop();
            offset = this.$alexaSkill.$audioPlayer.getOffsetInMilliseconds();

 this.$alexaSkill.$audioPlayer
                    .setOffsetInMilliseconds(offset)
                    .play(stream, 'token');

As I said in the previous post, in MP3 works, in AAC doesn’t, they are stored in the same database.


#3

This is something we have no control.
I haven’t worked with AAC files yet but I could imagine that AAC files are interpreted as a stream and that’s why it doesn’t work.