remote_notify.h 789 B

123456789101112131415161718
  1. #pragma once
  2. class IRemoteNotify
  3. {
  4. public:
  5. virtual void OnConnected(bool bRet) = 0;
  6. virtual void OnRobot(const remote::Robot& robot) = 0;
  7. virtual void OnAdd(int32_t uid, bool bRet) = 0;
  8. virtual void OnVideoReq(int32_t index, int32_t peer) = 0;
  9. virtual void OnVideoOffer(int32_t index, const char* type, const char* sdp) = 0;
  10. virtual void OnVideoAnswer(int32_t index, const char* type, const char* sdp) = 0;
  11. virtual void OnVideoCandidate(int32_t index, const char* candidate,
  12. int32_t sdp_mline_index,
  13. const char* sdp_mid) = 0;
  14. virtual void OnNotifyState(int32_t rid, UserState state) = 0;
  15. virtual void OnVideoRep(bool ok, int32_t index, int32_t peer) = 0;
  16. virtual void OnNotifyDel(int32_t peer, EgoType type) = 0;
  17. virtual void OnVideoLeave(int32_t peer, EgoType type) = 0;
  18. };