2021-04-02 19:04:01 +08:00
|
|
|
package com.genersoft.iot.vmp.service;
|
2020-12-16 20:29:19 +08:00
|
|
|
|
2022-03-25 16:05:14 +08:00
|
|
|
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.media.zlm.dto.MediaServerItem;
|
2023-05-06 17:40:57 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.InviteErrorCallback;
|
2022-03-14 18:24:30 +08:00
|
|
|
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-03-14 18:24:30 +08:00
|
|
|
void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
|
2023-05-06 17:40:57 +08:00
|
|
|
InviteErrorCallback<Object> callback);
|
|
|
|
SSRCInfo play(MediaServerItem mediaServerItem, String deviceId, String channelId, InviteErrorCallback<Object> callback);
|
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
|
|
|
|
2023-01-10 11:36:54 +08:00
|
|
|
/**
|
|
|
|
* 获取包含assist服务的节点
|
|
|
|
*/
|
|
|
|
MediaServerItem getNewMediaServerItemHasAssist(Device device);
|
|
|
|
|
2023-05-08 17:18:08 +08:00
|
|
|
void playBack(String deviceId, String channelId, String startTime, String endTime, InviteErrorCallback<Object> callback);
|
|
|
|
void playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, String deviceId, String channelId, String startTime, String endTime, InviteErrorCallback<Object> callback);
|
2022-03-07 01:17:45 +08:00
|
|
|
|
|
|
|
void zlmServerOffline(String mediaServerId);
|
2022-03-25 16:05:14 +08:00
|
|
|
|
2023-05-08 17:18:08 +08:00
|
|
|
void download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteErrorCallback<Object> callback);
|
|
|
|
void download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteErrorCallback<Object> callback);
|
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);
|
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
|
|
|
}
|