Cannot stop MediaObject
In a nutshell: I'm not able to stop MediaObject programatically.
I have a MediaObject which is not the final response (I need to respond for the finish playing callback) I have also SuggestionsChip "Finish" which suppose to finish currently played MediaObject and quit the conversation. It works properly on simulator but not on a device (on Google Assistant app).
Scenario 1: MediaObject is about to start playing media (already presented with a picture)
- Tap on "Finish" suggestion chip
- The app quits the conversation but also starts playing audio (should not happen)
Scenario 2: MediaObject is already playing media
- Tap on "Finish" suggestion chip
- Agent returns "Ok" (or something else randomly), pauses playing Media Object but stays in the conversation. (should not happen)
- If i "Finish" it again, the app quits the conversation
This seems to be a known bug. See https://stackoverflow.com/questions/54221405/ending-a-conv-playing-a-media-response-doesnt-work-as-expected-it-pauses-the-a/
Yep, known issue. It appears that they never considered that you might want any control over media playback.
Same issue, I guess it would be great if they add play pause capability in mediaobject