VideoManager+socket.m 934 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // VideoManager+socket.m
  3. // SikeyComm
  4. //
  5. // Created by 刘振兴 on 2025/2/20.
  6. // Copyright © 2025 BaH Cy. All rights reserved.
  7. //
  8. #import "VideoManager+socket.h"
  9. @implementation VideoManager (socket)
  10. - (void)actionFromSocket:(SocketModel*)model dial:(NSInteger)dial {
  11. ChildModel* childModel = [[DataManager shared] getChildWithTicket:self.mTicket];
  12. BOOL isEquel = [model.sendId isEqualToString:childModel.cid];
  13. if (dial <= 0) {
  14. if (isEquel) {
  15. [EasyTextView showInfoText:NSLocalizedString(@"Video.Error.Hangup", nil)];
  16. [self term];
  17. }
  18. } else {
  19. self.uid = [DataManager shared].loginModel.uid;
  20. self.mTicket = [[DataManager shared] getDevice:model.sendId].ticket;
  21. self.mToken = ((SocketContentModel*)model.content).token;
  22. self.mChannelName = ((SocketContentModel*)model.content).channelName;
  23. [self videoCallIn];
  24. }
  25. }
  26. @end