getOffset in Google Actions

google-assistant

#1

Hello everyone!
Is there a way to take the offset after the user has stopped audio in google? to play the audio I use mediaResponse and I saw that you can set it an initial offset with startOffset.
Thanks!


#2

Hi @Ire,

Afaik, Google Actions don’t send a request to the fulfillment endpoint when a user pauses/stops the audioplayer. This means that there is, unfortunately, no way to retrieve an offset.


#3

It wasn’t possible with Dialogflow/GoogleAssistant, but it’s possible with the Conversational Actions.

Here’s an example: https://github.com/jovotech/jovo-framework/blob/master/examples/typescript/02_googleassistantconv/media/src/app.ts#L36


#4

Hi @jan and @AlexSwe,
thanks for your help. Now I’m experimenting with getting the offset with getprogress () using mediaResponse and not AudioPlayer. It appears that a correct value is being returned to me.
Thanks so much!