Skip to content

Commit ef606ad

Browse files
committed
fixed bug stopping screenshare externally
1 parent 35ff765 commit ef606ad

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

public/RoomClient.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,7 @@ class RoomClient {
347347
}
348348

349349
producer.on('trackended', () => {
350-
if (!audio) {
351-
elem.srcObject.getTracks().forEach(function (track) {
352-
track.stop()
353-
})
354-
elem.parentNode.removeChild(elem)
355-
}
356-
this.producers.delete(producer.id)
350+
this.closeProducer(type)
357351
})
358352

359353
producer.on('transportclose', () => {

0 commit comments

Comments
 (0)