临时提交

This commit is contained in:
648540858
2024-04-18 18:31:37 +08:00
parent 73559cc6b3
commit 94436de3e1
3 changed files with 11 additions and 4 deletions

View File

@@ -12,10 +12,11 @@ public interface IRedisRpcService {
WVPResult stopSendRtp(String sendRtpItemKey);
void waitePushStreamOnline(SendRtpItem sendRtpItem, CommonCallback<String> callback);
long waitePushStreamOnline(SendRtpItem sendRtpItem, CommonCallback<String> callback);
void stopWaitePushStreamOnline(String sendRtpItemKey, SendRtpItem sendRtpItem);
void rtpSendStopped(String sendRtpItemKey);
void removeCallback(long key);
}

View File

@@ -84,7 +84,7 @@ public class RedisRpcServiceImpl implements IRedisRpcService {
}
@Override
public void waitePushStreamOnline(SendRtpItem sendRtpItem, CommonCallback<String> callback) {
public long waitePushStreamOnline(SendRtpItem sendRtpItem, CommonCallback<String> callback) {
logger.info("[请求所有WVP监听流上线] {}/{}", sendRtpItem.getApp(), sendRtpItem.getStream());
// 监听流上线。 流上线直接发送sendRtpItem消息给实际的信令处理者
HookSubscribeForStreamChange hook = HookSubscribeFactory.on_stream_changed(
@@ -122,7 +122,7 @@ public class RedisRpcServiceImpl implements IRedisRpcService {
}
hookSubscribe.removeSubscribe(hook);
});
return request.getSn();
}
@Override
@@ -147,4 +147,9 @@ public class RedisRpcServiceImpl implements IRedisRpcService {
request.setToId(sendRtpItem.getServerId());
redisRpcConfig.request(request, 10);
}
@Override
public void removeCallback(long key) {
redisRpcConfig.removeCallback(key);
}
}