From 07a8ef9e256c70a3a5b15782add81dcad1e2ffc2 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期五, 14 六月 2024 00:03:57 +0800 Subject: [PATCH] SIP只有一个监听时,直接返回 --- src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java | 49 ++++++++----------------------------------------- 1 files changed, 8 insertions(+), 41 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java old mode 100644 new mode 100755 index 1036efd..e54fa92 --- a/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java +++ b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java @@ -4,8 +4,6 @@ import com.genersoft.iot.vmp.common.InviteSessionType; import com.genersoft.iot.vmp.service.bean.ErrorCallback; -import java.util.List; - /** * 璁板綍鍥芥爣鐐规挱鐨勭姸鎬侊紝鍖呮嫭瀹炴椂棰勮锛屼笅杞斤紝褰曞儚鍥炴斁 */ @@ -15,6 +13,10 @@ * 鏇存柊鐐规挱鐨勭姸鎬佷俊鎭� */ void updateInviteInfo(InviteInfo inviteInfo); + + void updateInviteInfo(InviteInfo inviteInfo, Long time); + + InviteInfo updateInviteInfoForStream(InviteInfo inviteInfo, String stream); /** * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭� @@ -74,48 +76,13 @@ int getStreamInfoCount(String mediaServerId); - /*======================璁惧涓诲瓙鐮佹祦閫昏緫START=========================*/ /** - * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭� + * 鑾峰彇MediaServer涓嬬殑娴佷俊鎭� */ - InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type, - String deviceId, - String channelId,boolean isSubStream); - - void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId,boolean isSubStream); - - InviteInfo getInviteInfo(InviteSessionType type, - String deviceId, - String channelId, - boolean isSubStream, - String stream); - - void removeInviteInfo(InviteSessionType type, - String deviceId, - String channelId, - boolean isSubStream, - String stream); - - void once(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, ErrorCallback<Object> callback); - - void call(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, int code, String msg, Object data); - - void updateInviteInfoSub(InviteInfo inviteInfo); + InviteInfo getInviteInfoBySSRC(String ssrc); /** - * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭� + * 鏇存柊ssrc */ - InviteInfo getInviteInfoByStream(InviteSessionType type, String stream,boolean isSubStream); - - /** - * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭� - */ - List<Object> getInviteInfos(InviteSessionType type, - String deviceId, - String channelId, - String stream); - /*======================璁惧涓诲瓙鐮佹祦閫昏緫END=========================*/ - - - + InviteInfo updateInviteInfoForSSRC(InviteInfo inviteInfo, String ssrcInResponse); } -- Gitblit v1.8.0