Basic-Video-Broadcasting
Basic-Video-Broadcasting copied to clipboard
Screen Sharing error in OpenLive-Web
Hello, I have been trying to set up the screensharing functionality correctly since last few days and I'm getting a particular issue that seems to root from the project. Here's the screenshot.
Steps to reproduce:
i ) Go to agora web platform and join a channel ( let's say "hello" ) as a "host"
ii ) Next join the same channel as a "attendee"
iii ) try using the screen share feature
iv ) then click on stop sharing button, "attendee" side will have this error
Apart from that I have noticed some more errors related to this line
Possible issue is that currentStream isn't defined when the stream needs to be removed.
Hey this happens because stream is removed twice, once the removeStream
is called and next removeStreamById
, I found a temp fix by removing the function of removeStreamById
.