IInviteStreamService.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package com.genersoft.iot.vmp.service;
  2. import com.genersoft.iot.vmp.common.InviteInfo;
  3. import com.genersoft.iot.vmp.common.InviteSessionType;
  4. import com.genersoft.iot.vmp.service.bean.ErrorCallback;
  5. /**
  6. * 记录国标点播的状态,包括实时预览,下载,录像回放
  7. */
  8. public interface IInviteStreamService {
  9. /**
  10. * 更新点播的状态信息
  11. */
  12. void updateInviteInfo(InviteInfo inviteInfo);
  13. /**
  14. * 获取点播的状态信息
  15. */
  16. InviteInfo getInviteInfo(InviteSessionType type,
  17. String deviceId,
  18. String channelId,
  19. String stream);
  20. /**
  21. * 移除点播的状态信息
  22. */
  23. void removeInviteInfo(InviteSessionType type,
  24. String deviceId,
  25. String channelId,
  26. String stream);
  27. /**
  28. * 移除点播的状态信息
  29. */
  30. void removeInviteInfo(InviteInfo inviteInfo);
  31. /**
  32. * 移除点播的状态信息
  33. */
  34. void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId);
  35. /**
  36. * 获取点播的状态信息
  37. */
  38. InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
  39. String deviceId,
  40. String channelId);
  41. /**
  42. * 获取点播的状态信息
  43. */
  44. InviteInfo getInviteInfoByStream(InviteSessionType type, String stream);
  45. /**
  46. * 添加一个invite回调
  47. */
  48. void once(InviteSessionType type, String deviceId, String channelId, String stream, ErrorCallback<Object> callback);
  49. /**
  50. * 调用一个invite回调
  51. */
  52. void call(InviteSessionType type, String deviceId, String channelId, String stream, int code, String msg, Object data);
  53. /**
  54. * 清空一个设备的所有invite信息
  55. */
  56. void clearInviteInfo(String deviceId);
  57. /**
  58. * 统计同一个zlm下的国标收流个数
  59. */
  60. int getStreamInfoCount(String mediaServerId);
  61. }