We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4ee2fc commit bae8be5Copy full SHA for bae8be5
1 file changed
src/server/modules/socket-io/socket-io.ts
@@ -719,6 +719,10 @@ export default class SocketIOServer {
719
}
720
721
722
+ this.shotNsp
723
+ .to(this.getViewerLogicRoomKey(uca))
724
+ .emit('broadcastProduced', { shotId: id, trackId: data.trackId });
725
+
726
return {
727
producerId: producer.id,
728
type: producer.type,
@@ -896,7 +900,9 @@ export default class SocketIOServer {
896
900
mediaRoom.shots.get(data.shotId)?.trackProducers?.delete(trackId);
897
901
898
902
});
899
- this.shotNsp.to(this.getViewerLogicRoomKey(uca)).emit('broadcastStopped', { shotId: data.shotId, trackIds: data.trackIds });
903
904
905
+ .emit('broadcastStopped', { shotId: data.shotId, trackIds: data.trackIds });
906
},
907
);
908
0 commit comments