[*] 每日优化

配置没有改变不要重连信令
忽略房间重复邀请
This commit is contained in:
acgist
2023-05-13 12:09:16 +08:00
parent 825fa907e5
commit 8430fa78a8
17 changed files with 707 additions and 383 deletions

View File

@@ -99,6 +99,10 @@ public abstract class ProtocolAdapter implements Protocol {
if(id == null) {
id = this.idService.buildId();
}
// 设置主体
if(body == null) {
body = Map.of();
}
// 消息头部
final Header header = Header.builder()
.v(this.taoyaoProperties.getVersion())

View File

@@ -16,14 +16,21 @@ import com.acgist.taoyao.signal.protocol.ProtocolControlAdapter;
*/
@Protocol
@Description(
body = """
{
"to": "目标终端ID"
}
""",
body = {
"""
{
"to": "目标终端ID"
}
""",
"""
{
"filepath": "图片文件路径"
}
"""
},
flow = {
"信令服务->终端",
"终端->信令服务->终端"
"信令服务->目标终端->信令服务",
"终端=>信令服务->目标终端->信令服务->终端"
}
)
public class ControlPhotographProtocol extends ProtocolControlAdapter {

View File

@@ -17,15 +17,23 @@ import com.acgist.taoyao.signal.protocol.ProtocolControlAdapter;
*/
@Protocol
@Description(
body = """
{
"to": "目标终端ID",
"enabled": 是否录像true|false
}
""",
body = {
"""
{
"to": "目标终端ID",
"enabled": 是否录像true|false
}
""",
"""
{
"enabled": 是否录像true|false,
"filepath": "视频文件路径"
}
"""
},
flow = {
"信令服务->终端",
"终端=>信令服务->终端"
"信令服务->目标终端->信令服务",
"终端=>信令服务->目标终端->信令服务->终端"
}
)
public class ControlRecordProtocol extends ProtocolControlAdapter {
@@ -43,7 +51,7 @@ public class ControlRecordProtocol extends ProtocolControlAdapter {
/**
* @param clientId 终端ID
* @param enabled 状态
* @param enabled 状态
*
* @return 执行结果
*/

View File

@@ -14,9 +14,12 @@ import com.acgist.taoyao.signal.protocol.ProtocolRoomAdapter;
/**
* 修改最佳空间层和时间层信令
*
* 空间层spatialLayer分辨率
* 时间层temporalLayer帧率
*
* 码率:数据大小和时间的比值
*
* 注意只有simulcast和SVC消费者有效
*
* @author acgist

View File

@@ -13,6 +13,8 @@ import com.acgist.taoyao.signal.protocol.ProtocolRoomAdapter;
/**
* 设置消费者优先级信令
*
* TODOunsetPriority
*
* @author acgist
*/
@Protocol

View File

@@ -45,7 +45,6 @@ public class SessionCloseProtocol extends ProtocolSessionAdapter implements Appl
@Override
public void execute(String clientId, ClientType clientType, Session session, Client client, Message message, Map<String, Object> body) {
session.push(message);
session.close();
}