Commit ff75e2c0bc962628c2d32d17b0804315a2e4fbd3
1 parent
cca552bf
no message
Showing
2 changed files
with
3 additions
and
3 deletions
CNLivePlayerSDKTest/CNLivePlayerSDKTest/Player/CNLiveViewController.m
| @@ -106,7 +106,7 @@ NSString * const activityInfo = @"http://api.cnlive.com/open/api2/live_epg/getLi | @@ -106,7 +106,7 @@ NSString * const activityInfo = @"http://api.cnlive.com/open/api2/live_epg/getLi | ||
| 106 | NSLog(@"||||||||||||||||||||||||初始化播放器---------------"); | 106 | NSLog(@"||||||||||||||||||||||||初始化播放器---------------"); |
| 107 | 107 | ||
| 108 | //点播播放 | 108 | //点播播放 |
| 109 | - _player = [[CNLiveMoviePlayerController alloc] initVodPlayWithVId:@"82_c8ff347048414b7295cef882f8361073" | 109 | + _player = [[CNLiveMoviePlayerController alloc] initVodPlayWithVId:@"82_bf5c1b2b70a94ba5ac4f95d30d3e45a8" |
| 110 | authSuccess:^{ | 110 | authSuccess:^{ |
| 111 | 111 | ||
| 112 | NSLog(@"||||||||||||||||||||||||初始化播放器成功---------------"); | 112 | NSLog(@"||||||||||||||||||||||||初始化播放器成功---------------"); |
CNLivePlayerSDKTest/CNLivePlayerSDKTest/Streamer/AudioStreamingViewController.m
| @@ -48,8 +48,8 @@ | @@ -48,8 +48,8 @@ | ||
| 48 | NSDate *date = [NSDate date]; | 48 | NSDate *date = [NSDate date]; |
| 49 | NSInteger time = [date timeIntervalSince1970]; | 49 | NSInteger time = [date timeIntervalSince1970]; |
| 50 | NSString *activityId = [NSString stringWithFormat:@"%ld", (long)time]; | 50 | NSString *activityId = [NSString stringWithFormat:@"%ld", (long)time]; |
| 51 | - | ||
| 52 | - _kitCN = [[CNLiveGPUStreamerKit alloc] initWithDefaultConfigWithPureAudioMode:NO]; | 51 | + |
| 52 | + _kitCN = [[CNLiveGPUStreamerKit alloc] initCNLiveKitWithDefaultConfigWithPureAudioMode:YES]; | ||
| 53 | _kitCN.activityId = activityId; | 53 | _kitCN.activityId = activityId; |
| 54 | _kitCN.channelId = @"iostest"; | 54 | _kitCN.channelId = @"iostest"; |
| 55 | 55 |