Skip to content

Commit 6002540

Browse files
authored
Merge pull request #620 from lowcoder-org/agora-integrationn
fixed video end bug
2 parents 5692cc6 + 0858b4f commit 6002540

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ const shareScreen = async (sharing: boolean) => {
170170
};
171171
const leaveChannel = async () => {
172172
//stops local sharing video
173-
screenShareStream.close();
173+
if (screenShareStream) {
174+
screenShareStream.close();
175+
}
174176

175177
//stops local video streaming and puts off the camera
176178
if (videoTrack) {

0 commit comments

Comments
 (0)