question

newuser-67c446e0-e1ff-4222-807c-a5d919db4a5d avatar image
newuser-67c446e0-e1ff-4222-807c-a5d919db4a5d asked ·

MP3 AMAZON.IntentPause offsetmilliseconds

I've wriiten a skill in python to play a podcast , play and stopping is fine , so is pause but I'm unable to resume . How do I pull out the offsetmilliseconds from Alexa response after AudioPlayer.Stop is sent . As I need this offset to apply to the AMAZON.Resume request so the MP3 continues where it's left off. I have quired the event Json, as well as session json responses but neither has the offsetmilliseconds within . I was under the impression this is returned when AudioPlayer.stop is sent.

alexa skills kitaudioresponse
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jamie@Amazon avatar image
Jamie@Amazon answered ·

The PlaybackStopped event and PlaybackPaused events contain the offsetInMilliseconds field; you can use these to resume playback from where you stopped. Please see here for more info.

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.