IInviteStreamService.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.InviteErrorCallback;
  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, InviteErrorCallback<Object> callback);
  49. /**
  50. * 调用一个invite回调
  51. */
  52. void call(InviteSessionType type, String deviceId, String channelId, String stream, int code, String msg, Object data);
  53. }