12345678910111213141516171819202122232425262728293031 |
- //
- // VideoManager+socket.m
- // SikeyComm
- //
- // Created by 刘振兴 on 2025/2/20.
- // Copyright © 2025 BaH Cy. All rights reserved.
- //
- #import "VideoManager+socket.h"
- @implementation VideoManager (socket)
- - (void)actionFromSocket:(SocketModel*)model dial:(NSInteger)dial {
- ChildModel* childModel = [[DataManager shared] getChildWithTicket:self.mTicket];
- BOOL isEquel = [model.sendId isEqualToString:childModel.cid];
-
- if (dial <= 0) {
- if (isEquel) {
- [EasyTextView showInfoText:NSLocalizedString(@"Video.Error.Hangup", nil)];
- [self term];
- }
- } else {
- self.uid = [DataManager shared].loginModel.uid;
- self.mTicket = [[DataManager shared] getDevice:model.sendId].ticket;
- self.mToken = ((SocketContentModel*)model.content).token;
- self.mChannelName = ((SocketContentModel*)model.content).channelName;
- [self videoCallIn];
- }
- }
- @end
|