Commit 7a84e546e215c6fc53eff22cd6fe1be2b72f601f
1 parent
22f71b71
切换网络提示连接wifi
Showing
3 changed files
with
11 additions
and
9 deletions
CNLiveWitnessVideoModule/Classes/Controller/CNBWitnessListController.m
| @@ -210,11 +210,8 @@ NSString * const kIdentifier = @"CNBWitnessListCell"; | @@ -210,11 +210,8 @@ NSString * const kIdentifier = @"CNBWitnessListCell"; | ||
| 210 | [weakSelf.videoPlayerManager autoPause]; | 210 | [weakSelf.videoPlayerManager autoPause]; |
| 211 | [weakSelf showVideoAlertView]; | 211 | [weakSelf showVideoAlertView]; |
| 212 | }else { | 212 | }else { |
| 213 | - BOOL is4G = [[NSUserDefaults standardUserDefaults] objectForKey:@"is4G"]; | ||
| 214 | - if (!is4G) { | 213 | + //切换网络时提示 |
| 215 | [QMUITips showWithText:@"当前为非WiFi环境,请注意流量消耗" inView:CNBWitnessAppKeyWindow hideAfterDelay:1.0f]; | 214 | [QMUITips showWithText:@"当前为非WiFi环境,请注意流量消耗" inView:CNBWitnessAppKeyWindow hideAfterDelay:1.0f]; |
| 216 | - [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"is4G" ]; //是否是4G | ||
| 217 | - } | ||
| 218 | } | 215 | } |
| 219 | } | 216 | } |
| 220 | break; | 217 | break; |
CNLiveWitnessVideoModule/Classes/View/CNBWitnessPlayerView.m
| @@ -380,19 +380,19 @@ | @@ -380,19 +380,19 @@ | ||
| 380 | 380 | ||
| 381 | } | 381 | } |
| 382 | break; | 382 | break; |
| 383 | - case CNWitnessPlayerStateBuffering:{ | 383 | + case CNWitnessPlayerStateBuffering:{ //缓冲中 |
| 384 | 384 | ||
| 385 | } | 385 | } |
| 386 | break; | 386 | break; |
| 387 | - case CNWitnessPlayerStatePlaying: { | 387 | + case CNWitnessPlayerStatePlaying: { //播放 |
| 388 | 388 | ||
| 389 | } | 389 | } |
| 390 | break; | 390 | break; |
| 391 | - case CNWitnessPlayerStateStopped:{ | 391 | + case CNWitnessPlayerStateStopped:{ //停止 |
| 392 | 392 | ||
| 393 | } | 393 | } |
| 394 | break; | 394 | break; |
| 395 | - case CNWitnessPlayerStatePause:{ | 395 | + case CNWitnessPlayerStatePause:{ //暂停 |
| 396 | 396 | ||
| 397 | } | 397 | } |
| 398 | break; | 398 | break; |
README.md
| 1 | # CNLiveWitnessVideoModule | 1 | # CNLiveWitnessVideoModule |
| 2 | - | 2 | +#本地验证 |
| 3 | +pod lib lint --sources=http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git,https://github.com/CocoaPods/Specs.git --allow-warnings --use-libraries | ||
| 4 | +#远程验证 | ||
| 5 | +pod spec lint --sources=http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git,https://github.com/CocoaPods/Specs.git --allow-warnings --use-libraries | ||
| 6 | +#推送 | ||
| 7 | +pod repo push CNLiveRepos CNLiveWitnessVideoModule.podspec --allow-warnings --use-libraries --sources=http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git,https://github.com/CocoaPods/Specs.git | ||
| 3 | [](https://travis-ci.org/dawanzi/CNLiveWitnessVideoModule) | 8 | [](https://travis-ci.org/dawanzi/CNLiveWitnessVideoModule) |
| 4 | [](https://cocoapods.org/pods/CNLiveWitnessVideoModule) | 9 | [](https://cocoapods.org/pods/CNLiveWitnessVideoModule) |
| 5 | [](https://cocoapods.org/pods/CNLiveWitnessVideoModule) | 10 | [](https://cocoapods.org/pods/CNLiveWitnessVideoModule) |