Commit 9bf17c88 by zhangxingmin

push

parent 91ebb1ed
......@@ -711,6 +711,14 @@ public class CoWebSocketServer {
return;
}
// --- 操作5:WebRTC 信令转发(Offer/Answer/ICE) ---
if ("webrtc_offer".equals(action) || "webrtc_answer".equals(action) || "webrtc_ice_candidate".equals(action)) {
log.info("【WebRTC信令】转发 {} 消息", action);
// 只转发给房间内除发送者外的所有人(包括发送者自己?通常不需要给自己)
broadcast(roomId, message, session);
return;
}
// --- 未知操作:记录警告日志 ---
log.warn("未知 action: {}", action);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment