Error when trying to share screen multiple times during same session

Description
When user tries to share screen for second time SDK is behaving unexpectedly.
I implemented share screen according to documentation (Screen sharing)

And it works, but only when user shares screen for the first time.

If same user tries to share screen second time event active-share-change is not triggered.
I tried to change it to peer-share-state-change and this event is triggered, but when I try to render I receive INVALID_OPERATION error

Browser Console Error
INVALID_OPERATION

Which Web Video SDK version?
1.4.0

To Reproduce(If applicable)
this scenario causes error:

  1. Join session
  2. Render video
  3. Start share screen (user 1)
  4. Stop share screen (user 1)
  5. Start share screen (user1)

But this one works fine:

  1. Join session
  2. Render video
  3. Start share screen (user 1)
  4. Stop share screen (user 1)
  5. Start share screen (user2)
  6. Stop share screen (user 2)
  7. Start share screen (user 1)

Device (please complete the following information):

  • Browser: Chrome
  • Browser Version 104.0.5112.102

Hey @lukasz1

Could you share some code snippets for us to troubleshoot the issue?

And if it is convenient for you, could you test your operation on our sample app demo , does this issue reproduce?

Thanks
Vic

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.