Discussions
Interrupting a Talk Stream
9 months ago by Mark Vaykhansky
Hello,
My use case is building a live chat bot which does interviews and I need to be able to interrupt the bot when an interviewee is talking over it.
I've using this example: https://github.com/de-id/live-streaming-demo to create a talk stream.
What I wonder is how can I interrupt a talk stream?
I have a TalkID I get after sending a POST request to /talks/streams/{streamId} endpoint.
I would like to find out if a specific MediaStream is associated with a specific talkID so I can mute it.
The onTrack event is only called once so all of the Media received has the same trackID so it doesn't help me.
And WebRTCReports / MediaStream do not have the D-ID talkID nor the metadata / user_data / name I've passed to /talk/streams/{streamId}