2021-04-02 19:04:01 +08:00
|
|
|
package com.genersoft.iot.vmp.service;
|
2020-12-16 20:29:19 +08:00
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
2022-03-25 16:05:14 +08:00
|
|
|
import com.genersoft.iot.vmp.common.StreamInfo;
|
2021-07-16 16:34:51 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
2022-03-14 18:24:30 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.InviteStreamCallback;
|
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.InviteStreamInfo;
|
2021-01-15 18:22:57 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
|
|
|
|
import com.genersoft.iot.vmp.media.zlm.ZLMHttpHookSubscribe;
|
2021-07-16 16:34:51 +08:00
|
|
|
import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
|
2022-03-14 18:24:30 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.InviteTimeOutCallback;
|
2022-03-03 15:57:28 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.PlayBackCallback;
|
2022-03-14 18:24:30 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.SSRCInfo;
|
2021-04-11 22:32:28 +08:00
|
|
|
import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.PlayResult;
|
2022-03-03 15:57:28 +08:00
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.web.context.request.async.DeferredResult;
|
2020-12-16 20:29:19 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 点播处理
|
|
|
|
*/
|
|
|
|
public interface IPlayService {
|
|
|
|
|
2021-07-26 11:40:32 +08:00
|
|
|
void onPublishHandlerForPlay(MediaServerItem mediaServerItem, JSONObject resonse, String deviceId, String channelId, String uuid);
|
2021-01-15 18:22:57 +08:00
|
|
|
|
2022-03-14 18:24:30 +08:00
|
|
|
void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
|
|
|
|
ZLMHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
|
|
|
InviteTimeOutCallback timeoutCallback, String uuid);
|
2022-03-07 01:17:45 +08:00
|
|
|
PlayResult play(MediaServerItem mediaServerItem, String deviceId, String channelId, ZLMHttpHookSubscribe.Event event, SipSubscribe.Event errorEvent, Runnable timeoutCallback);
|
2021-07-16 16:34:51 +08:00
|
|
|
|
2021-07-26 11:40:32 +08:00
|
|
|
MediaServerItem getNewMediaServerItem(Device device);
|
2021-11-26 23:05:36 +08:00
|
|
|
|
2022-03-14 18:24:30 +08:00
|
|
|
void onPublishHandlerForDownload(InviteStreamInfo inviteStreamInfo, String deviceId, String channelId, String toString);
|
2022-03-03 15:57:28 +08:00
|
|
|
|
2022-08-21 22:22:34 +08:00
|
|
|
DeferredResult<String> playBack(String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
|
|
|
|
DeferredResult<String> playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
|
2022-03-07 01:17:45 +08:00
|
|
|
|
|
|
|
void zlmServerOffline(String mediaServerId);
|
2022-03-25 16:05:14 +08:00
|
|
|
|
2022-08-21 22:22:34 +08:00
|
|
|
DeferredResult<String> download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
|
|
|
|
DeferredResult<String> download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
|
2022-03-25 16:05:14 +08:00
|
|
|
|
|
|
|
StreamInfo getDownLoadInfo(String deviceId, String channelId, String stream);
|
2022-05-26 12:10:46 +08:00
|
|
|
|
|
|
|
void zlmServerOnline(String mediaServerId);
|
2020-12-16 20:29:19 +08:00
|
|
|
}
|