- Newest
- Most votes
- Most comments
Check the timing of your function calls. Make sure getMediaController() is invoked as soon as the chat session starts or when you need to monitor it, and not after the session ends.
Ensure that the session is active and valid before attempting to monitor it. You might need to handle reconnection or re-establishment of the session if it expires or disconnects unexpectedly.
Verify that you are indeed accessing the correct agent connection for the chat interaction. Ensure that contact.getAgentConnection() returns the connection specific to the chat session.
Make sure you are using the latest version of the Amazon Connect Streams API.
Test the functionality across different browsers and network conditions. Also, check for any errors or warnings in the browser's developer console that might provide more context.
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
Thansk Deekshitha, chat is active and agent is activly interacted with customer when i hit the monitor button on my custom dashboard. first i check the connection type with this method contact.getAgentConnection().getStatus().type === 'silent_monitor' after that i call contact.getAgentConnection().getMediaController() and when i console it give above error that i have mentioned in normal case it works fine and i have written the full functionality on that method.
hi @Deekshitha Urs this is what i am doing contact.onConnected(async (contact: any) => { this._timerService.startTimer(contact.contactId);
Can you please help me to figure out the issue?