Commit 197ebef192d63a60646596dbd7017eb0029dc25c
1 parent
2db7eab9
2.0.5 log日志,播放崩溃修复,心跳
Showing
8 changed files
with
21 additions
and
10 deletions
CNLivePlayerSDKTest/CNLivePlayerSDK.framework/CNLivePlayerSDK
No preview for this file type
CNLivePlayerSDKTest/CNLivePlayerSDK.framework/Headers/CNLiveGPUStreamerKit.h
| ... | ... | @@ -39,6 +39,12 @@ |
| 39 | 39 | isHorizontalScreen:(NSString *)isHorizontalScreen; |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | + @abstract 是否开启控制台输出日志 | |
| 43 | + @discussion 默认为开启 | |
| 44 | + */ | |
| 45 | +@property (nonatomic, assign) BOOL logPrintEnable; | |
| 46 | + | |
| 47 | +/** | |
| 42 | 48 | @abstract 活动名称(非必传) |
| 43 | 49 | */ |
| 44 | 50 | @property (nonatomic, strong) NSString *activityName; |
| ... | ... | @@ -224,20 +230,20 @@ |
| 224 | 230 | /** |
| 225 | 231 | @abstract 采集设备状态 |
| 226 | 232 | */ |
| 227 | -@property (nonatomic, assign) CNLiveCaptureState captureState; | |
| 233 | +@property (nonatomic, readonly) CNLiveCaptureState captureState; | |
| 228 | 234 | |
| 229 | 235 | FOUNDATION_EXPORT NSString *const CNLiveCaptureStateDidChangeNotification NS_AVAILABLE_IOS(7_0); |
| 230 | 236 | |
| 231 | 237 | /** |
| 232 | 238 | @abstract 推流状态 |
| 233 | 239 | */ |
| 234 | -@property (nonatomic, assign) CNLiveStreamState streamState; | |
| 240 | +@property (nonatomic, readonly) CNLiveStreamState streamState; | |
| 235 | 241 | |
| 236 | 242 | FOUNDATION_EXPORT NSString *const CNLiveStreamStateDidChangeNotification NS_AVAILABLE_IOS(7_0); |
| 237 | 243 | |
| 238 | 244 | /** |
| 239 | 245 | * @abstract 推流错误码,用于指示推流失败的原因 |
| 240 | 246 | */ |
| 241 | -@property (nonatomic, assign) CNLiveStreamErrorCode streamErrorCode; | |
| 247 | +@property (nonatomic, readonly) CNLiveStreamErrorCode streamErrorCode; | |
| 242 | 248 | |
| 243 | 249 | @end | ... | ... |
CNLivePlayerSDKTest/CNLivePlayerSDK.framework/Headers/CNLiveMoviePlayerController.h
| ... | ... | @@ -50,6 +50,11 @@ |
| 50 | 50 | authSuccess:(void(^)(void))authSuccessBlock |
| 51 | 51 | authFailed:(void(^)(NSDictionary *errorInfo))authFailedBlock; |
| 52 | 52 | |
| 53 | +/* | |
| 54 | + * 是否开启控制台输出日志(默认YES) | |
| 55 | + */ | |
| 56 | +@property (nonatomic, assign) BOOL logPrintEnable; | |
| 57 | + | |
| 53 | 58 | /* 切换视角和码率 |
| 54 | 59 | * |
| 55 | 60 | * 调用此方法会获取视频的不同视角或码率,并重新加载视频(获取视频的不同视角或码率需要一定的时间,在这段时间内,播放器不会停止播放,建议将播放器设为暂停状态(pause),并展示加载视频时的UI) | ... | ... |
CNLivePlayerSDKTest/CNLivePlayerSDK.framework/Info.plist
No preview for this file type
CNLivePlayerSDKTest/CNLivePlayerSDKTest.xcodeproj/project.pbxproj
| ... | ... | @@ -7,8 +7,8 @@ |
| 7 | 7 | objects = { |
| 8 | 8 | |
| 9 | 9 | /* Begin PBXBuildFile section */ |
| 10 | - 32ADA40C1DF91D5800B4585A /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 32ADA40A1DF91D5400B4585A /* CNLivePlayerSDK.framework */; }; | |
| 11 | - 32ADA40D1DF91D5800B4585A /* CNLivePlayerSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 32ADA40A1DF91D5400B4585A /* CNLivePlayerSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
| 10 | + 3238FD4F1DFABEEE00377CA4 /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3238FD4E1DFABEEE00377CA4 /* CNLivePlayerSDK.framework */; }; | |
| 11 | + 3238FD511DFABEF100377CA4 /* CNLivePlayerSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3238FD4E1DFABEEE00377CA4 /* CNLivePlayerSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
| 12 | 12 | 32B4C85A1D9B66A400925AF0 /* CNLiveViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B4C8591D9B66A400925AF0 /* CNLiveViewController.m */; }; |
| 13 | 13 | 32B4C85D1D9B66E500925AF0 /* StreamerDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 32B4C85C1D9B66E500925AF0 /* StreamerDetailViewController.m */; }; |
| 14 | 14 | 32E6CA2B1D5B0AF400B58EBC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 32E6CA2A1D5B0AF400B58EBC /* main.m */; }; |
| ... | ... | @@ -30,7 +30,7 @@ |
| 30 | 30 | dstPath = ""; |
| 31 | 31 | dstSubfolderSpec = 10; |
| 32 | 32 | files = ( |
| 33 | - 32ADA40D1DF91D5800B4585A /* CNLivePlayerSDK.framework in Embed Frameworks */, | |
| 33 | + 3238FD511DFABEF100377CA4 /* CNLivePlayerSDK.framework in Embed Frameworks */, | |
| 34 | 34 | ); |
| 35 | 35 | name = "Embed Frameworks"; |
| 36 | 36 | runOnlyForDeploymentPostprocessing = 0; |
| ... | ... | @@ -38,7 +38,7 @@ |
| 38 | 38 | /* End PBXCopyFilesBuildPhase section */ |
| 39 | 39 | |
| 40 | 40 | /* Begin PBXFileReference section */ |
| 41 | - 32ADA40A1DF91D5400B4585A /* CNLivePlayerSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLivePlayerSDK.framework; sourceTree = "<group>"; }; | |
| 41 | + 3238FD4E1DFABEEE00377CA4 /* CNLivePlayerSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLivePlayerSDK.framework; sourceTree = "<group>"; }; | |
| 42 | 42 | 32B4C8581D9B66A400925AF0 /* CNLiveViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CNLiveViewController.h; sourceTree = "<group>"; }; |
| 43 | 43 | 32B4C8591D9B66A400925AF0 /* CNLiveViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CNLiveViewController.m; sourceTree = "<group>"; }; |
| 44 | 44 | 32B4C85B1D9B66E500925AF0 /* StreamerDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StreamerDetailViewController.h; sourceTree = "<group>"; }; |
| ... | ... | @@ -68,7 +68,7 @@ |
| 68 | 68 | isa = PBXFrameworksBuildPhase; |
| 69 | 69 | buildActionMask = 2147483647; |
| 70 | 70 | files = ( |
| 71 | - 32ADA40C1DF91D5800B4585A /* CNLivePlayerSDK.framework in Frameworks */, | |
| 71 | + 3238FD4F1DFABEEE00377CA4 /* CNLivePlayerSDK.framework in Frameworks */, | |
| 72 | 72 | ); |
| 73 | 73 | runOnlyForDeploymentPostprocessing = 0; |
| 74 | 74 | }; |
| ... | ... | @@ -78,7 +78,7 @@ |
| 78 | 78 | 32E6CA1D1D5B0AF400B58EBC = { |
| 79 | 79 | isa = PBXGroup; |
| 80 | 80 | children = ( |
| 81 | - 32ADA40A1DF91D5400B4585A /* CNLivePlayerSDK.framework */, | |
| 81 | + 3238FD4E1DFABEEE00377CA4 /* CNLivePlayerSDK.framework */, | |
| 82 | 82 | 32E6CA281D5B0AF400B58EBC /* CNLivePlayerSDKTest */, |
| 83 | 83 | 32E6CA271D5B0AF400B58EBC /* Products */, |
| 84 | 84 | ); | ... | ... |
CNLivePlayerSDKTest/CNLivePlayerSDKTest/Streamer/StreamerDetailViewController.m
| ... | ... | @@ -45,7 +45,7 @@ |
| 45 | 45 | |
| 46 | 46 | _activityId = activityId; |
| 47 | 47 | |
| 48 | - _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithAppId:kAPPID appKey:kAPPKEY activityId:activityId channelId:@"iosTest" isHorizontalScreen:@"0"]; | |
| 48 | + _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithAppId:kAPPID appKey:kAPPKEY activityId:activityId channelId:@"test001" isHorizontalScreen:@"0"]; | |
| 49 | 49 | |
| 50 | 50 | // _kitCN.activityName = @"iOS test"; |
| 51 | 51 | // _kitCN.coverImgUrl = @"djfiwooa"; | ... | ... |
推流SDK文档.pdf
No preview for this file type
播放SDK文档.pdf
No preview for this file type