wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/service/IPlayService.java

52 lines
2.7 KiB
Java
Raw Normal View History

package com.genersoft.iot.vmp.service;
2020-12-16 20:29:19 +08:00
2022-11-05 20:49:56 +08:00
import com.alibaba.fastjson2.JSONObject;
import com.genersoft.iot.vmp.common.StreamInfo;
2022-09-30 17:54:58 +08:00
import com.genersoft.iot.vmp.conf.exception.ServiceException;
2021-07-16 16:34:51 +08:00
import com.genersoft.iot.vmp.gb28181.bean.Device;
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;
import com.genersoft.iot.vmp.service.bean.InviteTimeOutCallback;
2022-03-03 15:57:28 +08:00
import com.genersoft.iot.vmp.service.bean.PlayBackCallback;
import com.genersoft.iot.vmp.service.bean.SSRCInfo;
2020-12-16 20:29:19 +08:00
2022-09-30 17:54:58 +08:00
import javax.sip.InvalidArgumentException;
import javax.sip.SipException;
import java.text.ParseException;
2020-12-16 20:29:19 +08:00
/**
*
*/
public interface IPlayService {
2022-11-10 09:40:01 +08:00
void onPublishHandlerForPlay(MediaServerItem mediaServerItem, JSONObject resonse, String deviceId, String channelId);
2021-01-15 18:22:57 +08:00
void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
2022-11-10 09:40:01 +08:00
InviteTimeOutCallback timeoutCallback);
void play(MediaServerItem mediaServerItem, String deviceId, String channelId, ZlmHttpHookSubscribe.Event event, SipSubscribe.Event errorEvent, Runnable timeoutCallback);
2021-07-16 16:34:51 +08:00
MediaServerItem getNewMediaServerItem(Device device);
void onPublishHandlerForDownload(InviteStreamInfo inviteStreamInfo, String deviceId, String channelId, String toString);
2022-03-03 15:57:28 +08:00
void playBack(String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback playBackCallback);
void playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
void zlmServerOffline(String mediaServerId);
void download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback playBackCallback);
void download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
StreamInfo getDownLoadInfo(String deviceId, String channelId, String stream);
void zlmServerOnline(String mediaServerId);
2022-09-30 17:54:58 +08:00
void pauseRtp(String streamId) throws ServiceException, InvalidArgumentException, ParseException, SipException;
void resumeRtp(String streamId) throws ServiceException, InvalidArgumentException, ParseException, SipException;
2020-12-16 20:29:19 +08:00
}