IPlayService.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.genersoft.iot.vmp.service;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.genersoft.iot.vmp.common.StreamInfo;
  4. import com.genersoft.iot.vmp.gb28181.bean.Device;
  5. import com.genersoft.iot.vmp.gb28181.bean.InviteStreamCallback;
  6. import com.genersoft.iot.vmp.gb28181.bean.InviteStreamInfo;
  7. import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
  8. import com.genersoft.iot.vmp.media.zlm.ZLMHttpHookSubscribe;
  9. import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
  10. import com.genersoft.iot.vmp.service.bean.InviteTimeOutCallback;
  11. import com.genersoft.iot.vmp.service.bean.PlayBackCallback;
  12. import com.genersoft.iot.vmp.service.bean.SSRCInfo;
  13. import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.AudioBroadcastEvent;
  14. import com.genersoft.iot.vmp.vmanager.gb28181.play.bean.PlayResult;
  15. import org.springframework.http.ResponseEntity;
  16. import org.springframework.web.context.request.async.DeferredResult;
  17. /**
  18. * 点播处理
  19. */
  20. public interface IPlayService {
  21. void onPublishHandlerForPlay(MediaServerItem mediaServerItem, JSONObject resonse, String deviceId, String channelId, String uuid);
  22. void play(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo, Device device, String channelId,
  23. ZLMHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
  24. InviteTimeOutCallback timeoutCallback, String uuid);
  25. PlayResult play(MediaServerItem mediaServerItem, String deviceId, String channelId, ZLMHttpHookSubscribe.Event event, SipSubscribe.Event errorEvent, Runnable timeoutCallback);
  26. MediaServerItem getNewMediaServerItem(Device device);
  27. void onPublishHandlerForDownload(InviteStreamInfo inviteStreamInfo, String deviceId, String channelId, String toString);
  28. DeferredResult<ResponseEntity<String>> playBack(String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
  29. DeferredResult<ResponseEntity<String>> playBack(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
  30. void zlmServerOffline(String mediaServerId);
  31. DeferredResult<ResponseEntity<String>> download(String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
  32. DeferredResult<ResponseEntity<String>> download(MediaServerItem mediaServerItem, SSRCInfo ssrcInfo,String deviceId, String channelId, String startTime, String endTime, int downloadSpeed, InviteStreamCallback infoCallBack, PlayBackCallback hookCallBack);
  33. StreamInfo getDownLoadInfo(String deviceId, String channelId, String stream);
  34. void audioBroadcast(Device device, String channelId, int timeout, AudioBroadcastEvent event);
  35. void stopAudioBroadcast(String deviceId, String channelId);
  36. }