Skip to content

Commit c4ee2fc

Browse files
committed
feat: add /shot broadcastStopped broadcast event
1 parent c226daf commit c4ee2fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/modules/socket-io/socket-io.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ export default class SocketIOServer {
896896
mediaRoom.shots.get(data.shotId)?.trackProducers?.delete(trackId);
897897
}
898898
});
899-
// this.viewerNsp.to(this.getViewerLogicRoomKey(uca)).emit('shotGone', { shotId: data.shotId });
899+
this.shotNsp.to(this.getViewerLogicRoomKey(uca)).emit('broadcastStopped', { shotId: data.shotId, trackIds: data.trackIds });
900900
},
901901
);
902902
});

0 commit comments

Comments
 (0)