Authored by 盖剑秋

重新推流删除接口通知。

... ... @@ -1350,7 +1350,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
... ... @@ -1505,7 +1505,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
... ... @@ -1567,7 +1567,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
... ...
... ... @@ -168,31 +168,22 @@
- (void)continueRTMP {
if (_currentChannel) {
[[YH_NetworkAdapter adapter] setStatusWithStat:PushStatusStart andRoomId:_currentChannel.room completion:^(BOOL flag, NSError *error) {
if ([self startRtmp]) {
[YH_Tool alertMessage:@"直播开始"];
_totalTime = _currentChannel.totalTime.integerValue;
_timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(updateInfoView) userInfo:nil repeats:YES];
[_timer fire];
[self clearLog];
self.socketService.room = _currentChannel.room;
self.socketService.uid = @"";
self.socketService.userName = @"";
[self.socketService connect];
if (error) {
[self toastTip:[NSString stringWithFormat:@"开始失败,原因:%@",error.localizedDescription]];
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kPushging];
_currentChannel = nil;
}else {
if ([self startRtmp]) {
[YH_Tool alertMessage:@"直播开始"];
_totalTime = _currentChannel.totalTime.integerValue;
_timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(updateInfoView) userInfo:nil repeats:YES];
[_timer fire];
[self clearLog];
self.socketService.room = _currentChannel.room;
self.socketService.uid = @"";
self.socketService.userName = @"";
[self.socketService connect];
} else {
[self toastTip:@"直播开始失败"];
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kPushging];
_currentChannel = nil;
}
}
}];
} else {
[self toastTip:@"直播开始失败"];
[[NSUserDefaults standardUserDefaults] removeObjectForKey:kPushging];
_currentChannel = nil;
}
}
}
... ...
... ... @@ -31,7 +31,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>201609120001</string>
<string>201610260001</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
... ... @@ -39,6 +39,10 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string></string>
<key>NSMicrophoneUsageDescription</key>
<string></string>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
... ...