IInviteStreamService.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. import java.util.List;
  6. /**
  7. * 记录国标点播的状态,包括实时预览,下载,录像回放
  8. */
  9. public interface IInviteStreamService {
  10. /**
  11. * 更新点播的状态信息
  12. */
  13. void updateInviteInfo(InviteInfo inviteInfo);
  14. /**
  15. * 获取点播的状态信息
  16. */
  17. InviteInfo getInviteInfo(InviteSessionType type,
  18. String deviceId,
  19. String channelId,
  20. String stream);
  21. /**
  22. * 移除点播的状态信息
  23. */
  24. void removeInviteInfo(InviteSessionType type,
  25. String deviceId,
  26. String channelId,
  27. String stream);
  28. /**
  29. * 移除点播的状态信息
  30. */
  31. void removeInviteInfo(InviteInfo inviteInfo);
  32. /**
  33. * 移除点播的状态信息
  34. */
  35. void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId);
  36. /**
  37. * 获取点播的状态信息
  38. */
  39. InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
  40. String deviceId,
  41. String channelId);
  42. /**
  43. * 获取点播的状态信息
  44. */
  45. InviteInfo getInviteInfoByStream(InviteSessionType type, String stream);
  46. /**
  47. * 添加一个invite回调
  48. */
  49. void once(InviteSessionType type, String deviceId, String channelId, String stream, ErrorCallback<Object> callback);
  50. /**
  51. * 调用一个invite回调
  52. */
  53. void call(InviteSessionType type, String deviceId, String channelId, String stream, int code, String msg, Object data);
  54. /**
  55. * 清空一个设备的所有invite信息
  56. */
  57. void clearInviteInfo(String deviceId);
  58. /**
  59. * 统计同一个zlm下的国标收流个数
  60. */
  61. int getStreamInfoCount(String mediaServerId);
  62. /*======================设备主子码流逻辑START=========================*/
  63. /**
  64. * 获取点播的状态信息
  65. */
  66. InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
  67. String deviceId,
  68. String channelId,boolean isSubStream);
  69. void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId,boolean isSubStream);
  70. InviteInfo getInviteInfo(InviteSessionType type,
  71. String deviceId,
  72. String channelId,
  73. boolean isSubStream,
  74. String stream);
  75. void removeInviteInfo(InviteSessionType type,
  76. String deviceId,
  77. String channelId,
  78. boolean isSubStream,
  79. String stream);
  80. void once(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, ErrorCallback<Object> callback);
  81. void call(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, int code, String msg, Object data);
  82. void updateInviteInfoSub(InviteInfo inviteInfo);
  83. /**
  84. * 获取点播的状态信息
  85. */
  86. InviteInfo getInviteInfoByStream(InviteSessionType type, String stream,boolean isSubStream);
  87. /**
  88. * 获取点播的状态信息
  89. */
  90. List<Object> getInviteInfos(InviteSessionType type,
  91. String deviceId,
  92. String channelId,
  93. String stream);
  94. /*======================设备主子码流逻辑END=========================*/
  95. }