648540858
2024-05-29 764d04b497356ba6bcbb75fd42b51eca750f7223
src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
old mode 100644 new mode 100755
@@ -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,8 @@
     * 更新点播的状态信息
     */
    void updateInviteInfo(InviteInfo inviteInfo);
    InviteInfo updateInviteInfoForStream(InviteInfo inviteInfo, String stream);
    /**
     * 获取点播的状态信息
@@ -74,48 +74,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);
}