IPlayService.java 2.3 KB

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