IPlayService.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.genersoft.iot.vmp.service;
  2. import com.genersoft.iot.vmp.common.StreamInfo;
  3. import com.genersoft.iot.vmp.conf.exception.ServiceException;
  4. import com.genersoft.iot.vmp.gb28181.bean.Device;
  5. import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
  6. import com.genersoft.iot.vmp.service.bean.DownloadFileInfo;
  7. import com.genersoft.iot.vmp.service.bean.ErrorCallback;
  8. import com.genersoft.iot.vmp.service.bean.SSRCInfo;
  9. import javax.sip.InvalidArgumentException;
  10. import javax.sip.SipException;
  11. import java.text.ParseException;
  12. /**
  13. * 点播处理
  14. */
  15. public interface IPlayService {
  16. void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
  17. ErrorCallback<Object> callback);
  18. SSRCInfo play(MediaServerItem mediaServerItem, String deviceId, String channelId, String ssrc, ErrorCallback<Object> callback);
  19. MediaServerItem getNewMediaServerItem(Device device);
  20. /**
  21. * 获取包含assist服务的节点
  22. */
  23. MediaServerItem getNewMediaServerItemHasAssist(Device device);
  24. void playBack(String deviceId, String channelId, String startTime, String endTime, ErrorCallback<Object> callback);
  25. void playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, String deviceId, String channelId, String startTime, String endTime, ErrorCallback<Object> callback);
  26. void zlmServerOffline(String mediaServerId);
  27. void download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, ErrorCallback<Object> callback);
  28. void download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, ErrorCallback<Object> callback);
  29. StreamInfo getDownLoadInfo(String deviceId, String channelId, String stream);
  30. void zlmServerOnline(String mediaServerId);
  31. void pauseRtp(String streamId) throws ServiceException, InvalidArgumentException, ParseException, SipException;
  32. void resumeRtp(String streamId) throws ServiceException, InvalidArgumentException, ParseException, SipException;
  33. void getSnap(String deviceId, String channelId, String fileName, ErrorCallback errorCallback);
  34. }