| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- package com.genersoft.iot.vmp.service;
- import com.genersoft.iot.vmp.common.InviteInfo;
- import com.genersoft.iot.vmp.common.InviteSessionType;
- import com.genersoft.iot.vmp.service.bean.ErrorCallback;
- import java.util.List;
- /**
- * 记录国标点播的状态,包括实时预览,下载,录像回放
- */
- public interface IInviteStreamService {
- /**
- * 更新点播的状态信息
- */
- void updateInviteInfo(InviteInfo inviteInfo);
- /**
- * 获取点播的状态信息
- */
- InviteInfo getInviteInfo(InviteSessionType type,
- String deviceId,
- String channelId,
- String stream);
- /**
- * 移除点播的状态信息
- */
- void removeInviteInfo(InviteSessionType type,
- String deviceId,
- String channelId,
- String stream);
- /**
- * 移除点播的状态信息
- */
- void removeInviteInfo(InviteInfo inviteInfo);
- /**
- * 移除点播的状态信息
- */
- void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId);
- /**
- * 获取点播的状态信息
- */
- InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
- String deviceId,
- String channelId);
- /**
- * 获取点播的状态信息
- */
- InviteInfo getInviteInfoByStream(InviteSessionType type, String stream);
- /**
- * 添加一个invite回调
- */
- void once(InviteSessionType type, String deviceId, String channelId, String stream, ErrorCallback<Object> callback);
- /**
- * 调用一个invite回调
- */
- void call(InviteSessionType type, String deviceId, String channelId, String stream, int code, String msg, Object data);
- /**
- * 清空一个设备的所有invite信息
- */
- void clearInviteInfo(String deviceId);
- /**
- * 统计同一个zlm下的国标收流个数
- */
- int getStreamInfoCount(String mediaServerId);
- /*======================设备主子码流逻辑START=========================*/
- /**
- * 获取点播的状态信息
- */
- 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 getInviteInfoByStream(InviteSessionType type, String stream,boolean isSubStream);
- /**
- * 获取点播的状态信息
- */
- List<Object> getInviteInfos(InviteSessionType type,
- String deviceId,
- String channelId,
- String stream);
- /*======================设备主子码流逻辑END=========================*/
- }
|