Commit 507b96f6b94727c3efca90335ebee62360c0db23
Merge branch 'master' of bj.gitlab.cnlive.com:ios-team/LiveVideoCloud
Showing
6 changed files
with
54 additions
and
41 deletions
LiveVideoCloud.xcodeproj/project.pbxproj
| ... | ... | @@ -254,12 +254,13 @@ |
| 254 | 254 | D2EBC8961F0241BC00F198FB /* CNLiveMsgTools.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; |
| 255 | 255 | D2EBC8991F025D4700F198FB /* LVCVodPlayerFullController.m in Sources */ = {isa = PBXBuildFile; fileRef = D2EBC8981F025D4700F198FB /* LVCVodPlayerFullController.m */; }; |
| 256 | 256 | D2EBC89B1F03421C00F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; }; |
| 257 | - D2EBC89C1F03428700F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; }; | |
| 258 | - D2EBC89D1F03428700F198FB /* CNLiveChatManager.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
| 259 | 257 | D2EBC8A01F034C5500F198FB /* LVCCommentView.m in Sources */ = {isa = PBXBuildFile; fileRef = D2EBC89F1F034C5500F198FB /* LVCCommentView.m */; }; |
| 260 | 258 | D2EBC8A21F034F3C00F198FB /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; }; |
| 261 | 259 | D2EBC8A31F034F4000F198FB /* CNLivePlayerSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; }; |
| 262 | 260 | D2EBC8A41F034F4000F198FB /* CNLivePlayerSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; |
| 261 | + D2EBC8A61F03926E00F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; }; | |
| 262 | + D2EBC8A71F03927200F198FB /* CNLiveChatManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; }; | |
| 263 | + D2EBC8A81F03927200F198FB /* CNLiveChatManager.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; | |
| 263 | 264 | /* End PBXBuildFile section */ |
| 264 | 265 | |
| 265 | 266 | /* Begin PBXContainerItemProxy section */ |
| ... | ... | @@ -288,7 +289,7 @@ |
| 288 | 289 | files = ( |
| 289 | 290 | D2EBC8A41F034F4000F198FB /* CNLivePlayerSDK.framework in Embed Frameworks */, |
| 290 | 291 | D2EBC8961F0241BC00F198FB /* CNLiveMsgTools.framework in Embed Frameworks */, |
| 291 | - D2EBC89D1F03428700F198FB /* CNLiveChatManager.framework in Embed Frameworks */, | |
| 292 | + D2EBC8A81F03927200F198FB /* CNLiveChatManager.framework in Embed Frameworks */, | |
| 292 | 293 | ); |
| 293 | 294 | name = "Embed Frameworks"; |
| 294 | 295 | runOnlyForDeploymentPostprocessing = 0; |
| ... | ... | @@ -801,10 +802,11 @@ |
| 801 | 802 | D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveMsgTools.framework; sourceTree = "<group>"; }; |
| 802 | 803 | D2EBC8971F025D4700F198FB /* LVCVodPlayerFullController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LVCVodPlayerFullController.h; sourceTree = "<group>"; }; |
| 803 | 804 | D2EBC8981F025D4700F198FB /* LVCVodPlayerFullController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LVCVodPlayerFullController.m; sourceTree = "<group>"; }; |
| 804 | - D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveChatManager.framework; sourceTree = "<group>"; }; | |
| 805 | + D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CNLiveChatManager.framework; path = /Users/cnlive/Desktop/Group/LiveVideoCloud/LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework; sourceTree = "<absolute>"; }; | |
| 805 | 806 | D2EBC89E1F034C5500F198FB /* LVCCommentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LVCCommentView.h; sourceTree = "<group>"; }; |
| 806 | 807 | D2EBC89F1F034C5500F198FB /* LVCCommentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LVCCommentView.m; sourceTree = "<group>"; }; |
| 807 | 808 | D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLivePlayerSDK.framework; sourceTree = "<group>"; }; |
| 809 | + D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CNLiveChatManager.framework; sourceTree = "<group>"; }; | |
| 808 | 810 | /* End PBXFileReference section */ |
| 809 | 811 | |
| 810 | 812 | /* Begin PBXFrameworksBuildPhase section */ |
| ... | ... | @@ -814,13 +816,14 @@ |
| 814 | 816 | files = ( |
| 815 | 817 | D2393D281F02572100D3EE17 /* CoreTelephony.framework in Frameworks */, |
| 816 | 818 | D2393D261F0256FE00D3EE17 /* libstdc++.tbd in Frameworks */, |
| 819 | + D2EBC8A61F03926E00F198FB /* CNLiveChatManager.framework in Frameworks */, | |
| 820 | + D2EBC8A71F03927200F198FB /* CNLiveChatManager.framework in Frameworks */, | |
| 817 | 821 | D2393D2C1F02682000D3EE17 /* CNLiveUserSystemSDK.framework in Frameworks */, |
| 818 | 822 | D2393D241F0256E900D3EE17 /* libz.tbd in Frameworks */, |
| 819 | 823 | D2393D221F0256DC00D3EE17 /* libc++.tbd in Frameworks */, |
| 820 | 824 | D2393D201F0256AA00D3EE17 /* libsqlite3.tbd in Frameworks */, |
| 821 | 825 | D2EBC89B1F03421C00F198FB /* CNLiveChatManager.framework in Frameworks */, |
| 822 | 826 | D25BF8A31E80C4FC007FB138 /* Accelerate.framework in Frameworks */, |
| 823 | - D2EBC89C1F03428700F198FB /* CNLiveChatManager.framework in Frameworks */, | |
| 824 | 827 | D2EBC8A31F034F4000F198FB /* CNLivePlayerSDK.framework in Frameworks */, |
| 825 | 828 | D2393D0E1F0250A100D3EE17 /* libWeChatSDK.a in Frameworks */, |
| 826 | 829 | D2393D1D1F0250A700D3EE17 /* libWeiboSDK.a in Frameworks */, |
| ... | ... | @@ -1086,8 +1089,8 @@ |
| 1086 | 1089 | 812E504E1E7699B9004F5FCD /* CNLiveSDK */ = { |
| 1087 | 1090 | isa = PBXGroup; |
| 1088 | 1091 | children = ( |
| 1092 | + D2EBC8A51F03926E00F198FB /* CNLiveChatManager.framework */, | |
| 1089 | 1093 | D2EBC8A11F034F3C00F198FB /* CNLivePlayerSDK.framework */, |
| 1090 | - D2EBC89A1F03421C00F198FB /* CNLiveChatManager.framework */, | |
| 1091 | 1094 | D2EBC88F1F0241AD00F198FB /* CNLiveMsgTools.framework */, |
| 1092 | 1095 | D2393D2B1F02682000D3EE17 /* CNLiveUserSystemSDK.framework */, |
| 1093 | 1096 | D25BF87C1E7B8C78007FB138 /* KSYGPUResource.bundle */, | ... | ... |
LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework/CNLiveChatManager
No preview for this file type
LiveVideoCloud/Classes/CNLiveSDK/CNLiveChatManager.framework/Headers/CNLiveChatManager.h
LiveVideoCloud/Classes/Sections/homeSections/Controller/LVCVodPlayerListController.m
| ... | ... | @@ -45,20 +45,14 @@ static NSString *vodCellId = @"vodCellId"; |
| 45 | 45 | |
| 46 | 46 | _failedView.hidden = YES; |
| 47 | 47 | |
| 48 | - NSString *uid; | |
| 49 | - if ([UserTools isLogin]) { | |
| 50 | - uid = [UserInformationModel manager].uid; | |
| 51 | - } else { | |
| 52 | - uid = [NSString stringWithFormat:@"%u", arc4random()%3]; | |
| 53 | - } | |
| 54 | - NSString *tm = [NSString stringWithFormat:@"%u_%@", arc4random()%10, uid]; | |
| 55 | - | |
| 56 | - NSDictionary *parameter = @{@"cid": @"82_news/", | |
| 57 | - @"page": [NSString stringWithFormat:@"%d", 1], | |
| 58 | - @"pagesize": @"15", | |
| 59 | - @"tm": tm}; | |
| 60 | - | |
| 61 | - [[AFHTTPRequestOperationManager manager] GET:Newslist parameters:[self addParameters:parameter] success:^(AFHTTPRequestOperation *operation, id responseObject) { | |
| 48 | + NSInteger time = [[NSDate date] timeIntervalSince1970]; | |
| 49 | + NSString *timeString = [NSString stringWithFormat:@"%ld", (long)time]; | |
| 50 | + NSDictionary *parameter = @{ | |
| 51 | + @"appId" : UserAppId, | |
| 52 | + @"timestamp": timeString | |
| 53 | + }; | |
| 54 | + | |
| 55 | + [[AFHTTPRequestOperationManager manager] POST:@"http://test.open.cnlive.com/openapi/api2/vod_epg/getVodListInfo4App" parameters:[parameter addParameters] success:^(AFHTTPRequestOperation *operation, id responseObject) { | |
| 62 | 56 | |
| 63 | 57 | responseObject = [responseObject validatedDictionary]; |
| 64 | 58 | |
| ... | ... | @@ -189,21 +183,6 @@ static NSString *vodCellId = @"vodCellId"; |
| 189 | 183 | self.tableView.scrollsToTop = scrollToTop; |
| 190 | 184 | } |
| 191 | 185 | |
| 192 | -#pragma mark ------------------------------ 分割线 ---------------------------------------------- | |
| 193 | -- (NSDictionary *)addParameters:(NSDictionary *)dict { | |
| 194 | - | |
| 195 | - if (![dict isKindOfClass:[NSDictionary class]]) { | |
| 196 | - return dict; | |
| 197 | - } | |
| 198 | - if (!dict) { | |
| 199 | - return @{@"appid": JBAppId, @"plat": @"i", @"version": JBAppVersion}; | |
| 200 | - } else { | |
| 201 | - NSMutableDictionary *dic = [[NSMutableDictionary alloc] initWithDictionary:dict]; | |
| 202 | - [dic addEntriesFromDictionary:@{@"appid": JBAppId, @"plat": @"i", @"version": JBAppVersion}]; | |
| 203 | - return [[NSDictionary alloc] initWithDictionary:dic]; | |
| 204 | - } | |
| 205 | -} | |
| 206 | - | |
| 207 | 186 | - (void)didReceiveMemoryWarning { |
| 208 | 187 | [super didReceiveMemoryWarning]; |
| 209 | 188 | // Dispose of any resources that can be recreated. | ... | ... |
LiveVideoCloud/Classes/Sections/homeSections/View/LVCCommentView.m
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | #import "LVCCommentView.h" |
| 10 | 10 | |
| 11 | -@interface LVCCommentView() { | |
| 11 | +@interface LVCCommentView()<UITableViewDelegate, UITableViewDataSource> { | |
| 12 | 12 | |
| 13 | 13 | CGSize _contentSize; |
| 14 | 14 | } |
| ... | ... | @@ -17,6 +17,8 @@ |
| 17 | 17 | |
| 18 | 18 | @property (nonatomic, strong) UILabel *contentLabel; |
| 19 | 19 | |
| 20 | +@property (nonatomic, strong) UITableView *tableview; | |
| 21 | + | |
| 20 | 22 | @end |
| 21 | 23 | |
| 22 | 24 | @implementation LVCCommentView |
| ... | ... | @@ -34,15 +36,44 @@ |
| 34 | 36 | - (void)setModel:(ProgramModel *)model { |
| 35 | 37 | |
| 36 | 38 | _titleLabel.text = model.title; |
| 39 | + _contentLabel.text = model.desc; | |
| 40 | +} | |
| 41 | + | |
| 42 | +#pragma mark - UITableViewDelegate !!!!!!!!!!!!!!!!!!!!! | |
| 43 | + | |
| 44 | +#pragma mark - UITableViewDataSource !!!!!!!!!!!!!!!!!!!!!!!! | |
| 45 | +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
| 46 | + return 2; | |
| 47 | +} | |
| 48 | + | |
| 49 | +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
| 50 | + | |
| 51 | + return 2; | |
| 52 | +} | |
| 53 | + | |
| 54 | +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| 55 | + | |
| 56 | + return nil; | |
| 37 | 57 | } |
| 38 | 58 | |
| 39 | 59 | #pragma mark - GetMethod !!!!!!!!!!!!!!!!!!!!!! |
| 60 | +- (UITableView *)tableview { | |
| 61 | + | |
| 62 | + if (!_tableview) { | |
| 63 | + _tableview = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain]; | |
| 64 | + _tableview.delegate = self; | |
| 65 | + _tableview.dataSource = self; | |
| 66 | + _tableview.separatorStyle = UITableViewCellSeparatorStyleNone; | |
| 67 | + } | |
| 68 | + return _tableview; | |
| 69 | +} | |
| 70 | + | |
| 40 | 71 | - (UILabel *)titleLabel { |
| 41 | 72 | |
| 42 | 73 | if (!_titleLabel) { |
| 43 | 74 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, KScreenWidth-20, 40)]; |
| 44 | 75 | [_contentLabel setFont:[UIFont systemFontOfSize:22]]; |
| 45 | - _titleLabel.text = @"将就开始疯狂涉及到法定分"; | |
| 76 | + _titleLabel.text = @"标题"; | |
| 46 | 77 | } |
| 47 | 78 | return _titleLabel; |
| 48 | 79 | } |
| ... | ... | @@ -53,7 +84,7 @@ |
| 53 | 84 | _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, KScreenWidth-20, 100)]; |
| 54 | 85 | [_contentLabel setFont:[UIFont systemFontOfSize:14]]; |
| 55 | 86 | _contentLabel.textColor = [UIColor grayColor]; |
| 56 | - _contentLabel.text = @"就当是妇女节阿斯顿和播放控件安徽的播放控件和巴萨的海景房吧圣诞节还发什么你打副本氨基酸等回复看见爱上对方阿斯顿发布密集恐惧恨不得能否"; | |
| 87 | + _contentLabel.text = @"描述"; | |
| 57 | 88 | _contentLabel.numberOfLines = 0; |
| 58 | 89 | [_contentLabel sizeToFit]; |
| 59 | 90 | _contentSize = _contentLabel.bounds.size; | ... | ... |
LiveVideoCloud/PrefixHeader.pch
| ... | ... | @@ -79,8 +79,8 @@ |
| 79 | 79 | #define UserAppKey @"4c8658abc5d66f270f9bf5dcd1ef11e3597fab4c4e0af9"//@"13c6f0ad6f459cd479834b0b39cff99c6cf20c970815bb"// |
| 80 | 80 | #define UserAppSceret @"c2faeb120f0ea2e2d47020d4b03cb8a93bed2585897a94"//@"14c887b76ec2ecdf7083fb4c62808f13f6ab77a0f9dfec"// |
| 81 | 81 | |
| 82 | -#define JBAppId @"hdtv" | |
| 83 | -#define JBAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] ///debug用 "CFBundleVersion" | |
| 82 | +//#define JBAppId @"hdtv" | |
| 83 | +//#define JBAppVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] ///debug用 "CFBundleVersion" | |
| 84 | 84 | |
| 85 | 85 | //#define UserAppId @"60_itax25eq82" |
| 86 | 86 | //#define UserAppKey @"55a25a7f7e1124937fba06c82999d9a7c18379e2d24784" | ... | ... |