This message was deleted.
# helpdesk
s
This message was deleted.
l
Hi. Probably, you could subscribe to ParticipantEvent or RoomEvent with event TrackUnpublished and check if it was video and screenshare track (for RoomEvent also check user sid). (i use js example )
d
It should return a promise that you can await
f
hello i found that this works fine const localTrackUnpublished = (room: Room) => { setIsShareScreen(false) console.log('localTrackUnpublished', room) }; const localTrackPublished = (room: Room) => { setIsShareScreen(true) console.log('localTrackPublished', room) };