Discussions
Interrupt Streaming Avatar
6 months ago by Markos Gogoulos
Dear Heygen team,
after initializing a Streaming Avatar and exchanging a few messages with it, there are times that we want to interrupt it so that it does not repeat all the messages it has received. What is a good way to achieve this?
Please note we don't want to do any of the following:
A) mute the mediaElement, as the Avatar will still be talking and repeating a large message
B) pause() the mediaElement, as there might be a large message and if I then hit play() it will resume the message
B) stop the MediaStreamTracks, as I don't want to create a new session
Within the same session, is there a way to "clear the queue" of messages it is going to stream, so that it will resume with the next one that is sent?
Thanks and regards