Skip to content
Commit fa93a1ae authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Do not use the "videoRemoved" event



As the video element is not needed it is not necessary to listen to the
"videoRemoved" event. Moreover, this event is not emitted if there is no
video element created by SimpleWebRTC, so moving away from it will be
needed to work with the raw screen stream.

When the "localScreenStopped" event is handled the Peer that sends the
screen is already ended and removed (before it was not due to
"localScreenStopped" being emitted too from the "videoRemoved" handler),
so it is not possible to find it by traversing the list of peers. In any
case it is not needed either, as there is a direct reference to it.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 5c026970
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment