优化一起听被控端
This commit is contained in:
@@ -575,6 +575,11 @@ export class WatchRoomServer {
|
||||
|
||||
this.rooms.forEach((room, roomId) => {
|
||||
const timeSinceHeartbeat = now - room.lastOwnerHeartbeat;
|
||||
const isScreenSharing = room.currentState?.type === 'screen' && room.currentState.status === 'sharing';
|
||||
|
||||
if (isScreenSharing) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果房主心跳超过30秒,清除播放状态
|
||||
if (timeSinceHeartbeat > clearStateTimeout && room.currentState !== null) {
|
||||
|
||||
Reference in New Issue
Block a user