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