diff --git a/Ifish/Assets.xcassets/images/revert.imageset/revert.png b/Ifish/Assets.xcassets/images/revert.imageset/revert.png index 793d322..7bf906c 100644 Binary files a/Ifish/Assets.xcassets/images/revert.imageset/revert.png and b/Ifish/Assets.xcassets/images/revert.imageset/revert.png differ diff --git a/Ifish/Assets.xcassets/images/revert.imageset/revert@2x.png b/Ifish/Assets.xcassets/images/revert.imageset/revert@2x.png index 7ab0dff..fbbaefb 100644 Binary files a/Ifish/Assets.xcassets/images/revert.imageset/revert@2x.png and b/Ifish/Assets.xcassets/images/revert.imageset/revert@2x.png differ diff --git a/Ifish/Assets.xcassets/images/revert.imageset/revert@3x.png b/Ifish/Assets.xcassets/images/revert.imageset/revert@3x.png index 4ce7648..f48b899 100644 Binary files a/Ifish/Assets.xcassets/images/revert.imageset/revert@3x.png and b/Ifish/Assets.xcassets/images/revert.imageset/revert@3x.png differ diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m index e469509..2c53c02 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m @@ -246,6 +246,18 @@ Strong UIImage *screenShotImage;//截图 }else{ [self.yProgressView stop]; } + NSString* key = [NSString stringWithFormat:@"camera_%@_flip",self.contact.cameraId]; + NSString* flip =[[DataCenter defaultDtacenter].cache stringForKey:key]; + if ([flip isEqualToString:@"1"]) + { + [UIView animateWithDuration:0.1f animations:^{ + self.player.viewController.view.transform = CGAffineTransformMakeRotation(M_PI); + + } completion:^(BOOL finished) { + + }]; + + } } #pragma mark --LoadBaseUI -(UIView *)canvasView{ @@ -707,12 +719,31 @@ Strong UIImage *screenShotImage;//截图 } else if (tag == 4){ //翻转 - [UIView animateWithDuration:2.0f animations:^{ - weakSelf.player.viewController.view.transform = CGAffineTransformMakeRotation(M_PI); - - } completion:^(BOOL finished) { - - }]; + NSString* key = [NSString stringWithFormat:@"camera_%@_flip",weakSelf.contact.cameraId]; + NSString* flip =[[DataCenter defaultDtacenter].cache stringForKey:key]; + if ([flip isEqualToString:@"0"]||!flip.length) + { + [UIView animateWithDuration:0.25f animations:^{ + weakSelf.player.viewController.view.transform = CGAffineTransformMakeRotation(M_PI); + + } completion:^(BOOL finished) { + + }]; + [[DataCenter defaultDtacenter].cache setSynString:@"1" forKey:key]; + + } + else + { + [UIView animateWithDuration:0.25 animations:^{ + weakSelf.player.viewController.view.transform = CGAffineTransformIdentity; + + } completion:^(BOOL finished) { + + }]; + [[DataCenter defaultDtacenter].cache setSynString:@"0" forKey:key]; + } + + } [weakSelf popAppear];//隐藏弹出框