|
@@ -38,7 +38,7 @@
|
|
|
|
|
|
JCClientLoginParam* loginParam = [[JCClientLoginParam alloc] init];
|
|
|
BOOL isOK = [self.mJuphoonClient login:uid password:password loginParam:loginParam];
|
|
|
- HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: login call: %d", isOK]));
|
|
|
+ HDNormalLog(([NSString stringWithFormat:@"VideoManager: login call: %d", isOK]));
|
|
|
}
|
|
|
|
|
|
- (void)logoutJuphoon {
|
|
@@ -61,7 +61,7 @@
|
|
|
*/
|
|
|
- (void)onLogin:(bool)result reason:(JCClientReason)reason {
|
|
|
@weakify(self);
|
|
|
- HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: login Result:%d Reason:%ld", result, reason]));
|
|
|
+ HDNormalLog(([NSString stringWithFormat:@"VideoManager: login Result:%d Reason:%ld", result, reason]));
|
|
|
if (result) {// 登录成功
|
|
|
|
|
|
} else if (reason == JCClientReasonAuth) {// 账号密码错误
|
|
@@ -85,7 +85,7 @@
|
|
|
* @param reason 登出失败原因,参见:@ref JCClientReason "错误原因"
|
|
|
*/
|
|
|
- (void)onLogout:(JCClientReason)reason {
|
|
|
- HDNormalLog(@"SKJuphoon: onLogout");
|
|
|
+ HDNormalLog(@"VideoManager: onLogout");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -116,7 +116,7 @@
|
|
|
* @param item JCCallItem 对象
|
|
|
*/
|
|
|
- (void)onCallItemAdd:(JCCallItem* __nonnull)item {
|
|
|
- HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: onCallItemAdd direction: %ld", (long)item.direction]));
|
|
|
+ HDNormalLog(([NSString stringWithFormat:@"VideoManager: onCallItemAdd direction: %ld", (long)item.direction]));
|
|
|
NSDictionary *dic = @{kCallIetmKey:item};
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:kCallNotification object:nil userInfo:dic];
|
|
|
if (self.mJuphoonCall.callItems.count == 1) {
|
|
@@ -134,7 +134,7 @@
|
|
|
* @param description 通话结束原因的描述,只有被动挂断的时候,才会收到这个值,其他情况下则返回空字符串
|
|
|
*/
|
|
|
- (void)onCallItemRemove:(JCCallItem *)item reason:(JCCallReason)reason description:(NSString *)description {
|
|
|
- HDNormalLog(([NSString stringWithFormat:@"SKJuphoon: onCallItemRemove reason:%ld", reason]));
|
|
|
+ HDNormalLog(([NSString stringWithFormat:@"VideoManager: onCallItemRemove reason:%ld", reason]));
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:kCallNotification object:nil];
|
|
|
[self removeInCallVC];
|
|
|
switch (reason) {
|