The "isScreenSharingChanged" event of Azure Communication was not triggered when the stop sharing button was clicked..

Mui Mcentire 30 Reputation points
2023-06-14T20:22:19.7733333+00:00

I am utilized Azure/Communication-calling javascript to implement a screen sharing function on the web app. But the "isScreenSharingChanged" event of Azure Communication was not triggered when the stop sharing button was clicked.

Please help!

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
{count} votes

Accepted answer
  1. ajkuma 22,416 Reputation points Microsoft Employee
    2023-08-01T18:00:16.96+00:00

    To benefit the community, posting a summary of the solution that worked for Mui.

    "We were able to solve the issue, by going around the azure library - by get the navigator.mediaDevices to retrieve the stream and then attach the stream to screen sharing Call."

    Thanks @Mui Mcentire for your collaboration!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ajkuma 22,416 Reputation points Microsoft Employee
    2023-06-15T07:27:29.7533333+00:00

    @Mui Mcentire ,

    As I understand from the issue description that you are facing an issue with the "isScreenSharingChanged" event of Azure Communication not being triggered when the stop sharing button is clicked.

    To isolate the issue, you may review the following:

    If you haven’t one this already, ensure that you have subscribed to the event using the call.on('isScreenSharingChanged', callback) method and that the callback function is properly defined.

    Also, review the stop sharing button is not properly calling the call.stopScreenSharing() method. Make sure that the button is properly wired up to call this method when clicked.

    See @azure/communication-calling | call interface for more info.

    If you have already checked these things and are still experiencing issues, it would be helpful to provide more info about your implementation and any error messages you are receiving.

     

    Kindly let us know, I’ll follow-up with you further.

    Note: Please do not share any PII data on the public forum.