From b0080159d98cd441175ddaf90a77d30b8264003d Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期六, 19 十二月 2020 21:52:20 +0800 Subject: [PATCH] 去除ssrc作为流ID传递,ssrc只作为sdp消息使用。动态端口的情况下支持固定流地址,同时支持未点播时直接播放流地址,代码自动发起点播 --- src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java | 27 ++++++++++++++++++--------- 1 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java b/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java index fd0a665..f427e5e 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java @@ -1,6 +1,7 @@ package com.genersoft.iot.vmp.storager; import java.util.List; +import java.util.Map; import com.alibaba.fastjson.JSONObject; import com.genersoft.iot.vmp.common.PageResult; @@ -136,30 +137,24 @@ /** * 寮�濮嬫挱鏀炬椂灏嗘祦瀛樺叆 * - * @param deviceId 璁惧ID - * @param channelId 閫氶亾ID * @param stream 娴佷俊鎭� * @return */ - public boolean startPlay(String deviceId, String channelId, StreamInfo stream); + public boolean startPlay(StreamInfo stream); /** * 鍋滄鎾斁鏃跺垹闄� * - * @param deviceId 璁惧ID - * @param channelId 閫氶亾ID * @return */ - public boolean stopPlay(String deviceId, String channelId); + public boolean stopPlay(StreamInfo streamInfo); /** * 鏌ユ壘瑙嗛娴� * - * @param deviceId 璁惧ID - * @param channelId 閫氶亾ID * @return */ - public StreamInfo queryPlay(String deviceId, String channelId); + public StreamInfo queryPlay(StreamInfo streamInfo); /** * 鏌ヨ瀛愯澶� @@ -182,4 +177,18 @@ * @param deviceId */ void cleanChannelsForDevice(String deviceId); + + StreamInfo queryPlayByStreamId(String streamId); + + StreamInfo queryPlayByDevice(String deviceId, String code); + + Map<String, StreamInfo> queryPlayByDeviceId(String deviceId); + + boolean startPlayback(StreamInfo streamInfo); + + boolean stopPlayback(StreamInfo streamInfo); + + StreamInfo queryPlaybackByDevice(String deviceId, String channelId); + + StreamInfo queryPlaybackByStreamId(String streamId); } -- Gitblit v1.8.0