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

48 lines
2.1 KiB
Java
Raw Normal View History

package com.genersoft.iot.vmp.service;
2020-12-16 20:29:19 +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-29 23:28:06 +08:00
import com.genersoft.iot.vmp.service.bean.ErrorCallback;
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 {
void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
2023-05-29 23:28:06 +08:00
ErrorCallback<Object> callback);
SSRCInfo play(MediaServerItem mediaServerItem, String deviceId, String channelId, String ssrc, ErrorCallback<Object> callback);
2021-07-16 16:34:51 +08:00
MediaServerItem getNewMediaServerItem(Device device);
2023-01-10 11:36:54 +08:00
/**
* assist
*/
MediaServerItem getNewMediaServerItemHasAssist(Device device);
2023-05-29 23:28:06 +08:00
void playBack(String deviceId, String channelId, String startTime, String endTime, ErrorCallback<Object> callback);
void playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, String deviceId, String channelId, String startTime, String endTime, ErrorCallback<Object> callback);
void zlmServerOffline(String mediaServerId);
2023-05-29 23:28:06 +08:00
void download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, ErrorCallback<Object> callback);
void download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, ErrorCallback<Object> callback);
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;
2023-05-29 23:28:06 +08:00
void getSnap(String deviceId, String channelId, String fileName, ErrorCallback errorCallback);
2020-12-16 20:29:19 +08:00
}