Skip to content

Commit

Permalink
feat: 开放流媒体房间人数限制
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtsm committed Jul 29, 2023
1 parent 85d0013 commit f32fb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svr/src/socket/rtcCreateJoin/createJoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function userCreateAndJoin(io, socket, tables, dbClient, data){
}

//流媒体房间只允许两个人同时在线
if((type === 'screen' || type === 'video') && numClients >= 2){
if((type === 'screen' || type === 'video') && numClients >= 4){
socket.emit(rtcClientEvent.tips, {
room : data.room,
to : socket.id,
Expand Down

0 comments on commit f32fb0c

Please sign in to comment.