-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listen to webrtcsdk events on https://apps.mypurecloud.com.au/ native softphone #713
Comments
@yamanoj when you say:
What is the full url you are on? It almost sounds like you are in the main Genesys Cloud web application and you found the sdk object that our video iframe is using, which is why when you listen to |
The full URL goes like https://apps.mypurecloud.com.au/directory/#/person/xxx Yeah, this makes sense. The sdk (window_webrtcsdk) object might not be associated with the actual softphone. But unfortunately, sdk object is not exposed on any other windows/iframes. What I want is to listen to the events like call start/end/mute/unmute etc. Do you have any mechanism for this? |
@yamanoj, you want to listen to sdk events inside the main Genesys Cloud application? It seems a little odd to hook into the sdk of another app to listen to call events. Can I ask what your use case is? Currently, the main application is not using the SDK for softphone. We are working towards implementing it, but it is a slow process. |
I created the following simple app to test webrtcsdk event listeners and it is working fine:
I want to listen to the webrtcsdk events on https://apps.mypurecloud.com.au/ native softphone. I found an sdk object set as a window variable on one of the frames. However, I couldn't get working when I did the following:
window._webrtcsdk.on('sessionStarted', (e) => { console.log('SESSION STARTED' , e) });
What do you think is the best way to get this working?
The text was updated successfully, but these errors were encountered: