Basic-Video-Broadcasting icon indicating copy to clipboard operation
Basic-Video-Broadcasting copied to clipboard

Screen Sharing error in OpenLive-Web

Open hjhimanshu01 opened this issue 4 years ago • 1 comments

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. Screenshot (187) Screenshot (188)

hjhimanshu01 avatar Apr 04 '20 07:04 hjhimanshu01

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.

hjhimanshu01 avatar Apr 10 '20 05:04 hjhimanshu01