[+] 媒体信令
This commit is contained in:
@@ -13,6 +13,7 @@ import com.acgist.taoyao.signal.event.ApplicationEventAdapter;
|
||||
* 3000~3999:会议信令
|
||||
* 4000~4999:直播信令
|
||||
* 5000~5999:媒体信令
|
||||
* 6000~6999:媒体信令(Mediasoup)
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.acgist.taoyao.signal.protocol;
|
||||
|
||||
import java.net.http.WebSocket;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@@ -62,6 +63,15 @@ public class ProtocolManager {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pid 信令标识
|
||||
*
|
||||
* @return 信令
|
||||
*/
|
||||
public Protocol protocol(Integer pid) {
|
||||
return this.protocolMapping.get(pid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行信令消息
|
||||
*
|
||||
@@ -111,5 +121,5 @@ public class ProtocolManager {
|
||||
session.push(this.errorProtocol.build(MessageCode.CODE_3401, "终端会话没有授权"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user