|
|
@@ -73,7 +73,6 @@ RecoderManagerDelegate,
|
|
|
AudioRecoderMamagerDelegate,
|
|
|
RCLiveSteamManagerDelegate,
|
|
|
UITextFieldDelegate,
|
|
|
-ComontAlretViewControllerDelegate,
|
|
|
UIDocumentPickerDelegate>
|
|
|
{
|
|
|
// __block int _ihandle;
|
|
|
@@ -166,12 +165,13 @@ UIDocumentPickerDelegate>
|
|
|
isLan = NO;
|
|
|
_didRecyclResource = NO;
|
|
|
|
|
|
+ KWeakSelf
|
|
|
globalBlock(^{
|
|
|
// 初始化成功后连接
|
|
|
@synchronized (self) {
|
|
|
- if ([self initVideoServer])
|
|
|
+ if ([weakSelf initVideoServer])
|
|
|
{
|
|
|
- [self connectVideoServer];
|
|
|
+ [weakSelf connectVideoServer];
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -356,6 +356,7 @@ UIDocumentPickerDelegate>
|
|
|
|
|
|
[self removeNSNotification];
|
|
|
|
|
|
+ mySelf = nil;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -383,12 +384,13 @@ UIDocumentPickerDelegate>
|
|
|
|
|
|
isLan = NO;
|
|
|
|
|
|
+ KWeakSelf
|
|
|
globalBlock(^{
|
|
|
// 初始化成功后连接
|
|
|
@synchronized (self) {
|
|
|
- if ([self initVideoServer])
|
|
|
+ if ([weakSelf initVideoServer])
|
|
|
{
|
|
|
- [self connectVideoServer];
|
|
|
+ [weakSelf connectVideoServer];
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -683,20 +685,6 @@ UIDocumentPickerDelegate>
|
|
|
[self screenShotToPhoneFun];
|
|
|
}
|
|
|
|
|
|
- //尝试修复闪一下 没解决
|
|
|
-// if(ciImage){
|
|
|
-//
|
|
|
-// mainBlock(^{
|
|
|
-// if(mySelf->preIFrameNum == 0){
|
|
|
-// mySelf->mPlayerView.glkshowImageView.hidden = YES;
|
|
|
-// }
|
|
|
-// else if(mySelf->preIFrameNum == 30){
|
|
|
-// mySelf->mPlayerView.glkshowImageView.hidden = NO;
|
|
|
-// }
|
|
|
-// });
|
|
|
-// preIFrameNum ++;
|
|
|
-//
|
|
|
-// }
|
|
|
|
|
|
if (!mySelf->videoContext) mySelf->videoContext = [CIContext contextWithOptions:nil];
|
|
|
|