We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
첫 번째 시도에서 VideoPlayerControlView에서의 버튼 스케일 관련 이슈 해결을 위해 아래의 것들을 시도
1. ViewController Hierarchy 재작성
2. Scale 변환을 OnlyVideoPlayerView, VideoPlayerControlView 각각에 적용
func changeScreenSize(screenSizeStatus: ScreenSizeStatus) { switch screenSizeStatus { case .normal: self.videoPlayerView.layer.anchorPoint = CGPointMake(0.5, 0.5) self.videoPlayerControlView.layer.anchorPoint = CGPointMake(0.5, 0.5) UIView.animate(withDuration: 0.3, delay: TimeInterval(0.0), animations: { [self] in videoPlayerView.transform = CGAffineTransformTranslate(videoPlayerView.transform, 0, 0) videoPlayerView.transform = CGAffineTransform(rotationAngle: 0.0) videoPlayerView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0) videoPlayerControlView.transform = CGAffineTransformTranslate(videoPlayerControlView.transform, 0, 0) videoPlayerControlView.transform = CGAffineTransform(rotationAngle: 0.0) videoPlayerControlView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0) [videoPlayerControlView.playStatusControlButton, videoPlayerControlView.screenSizeControlButton].forEach({ $0.layer.anchorPoint = CGPoint(x: 0.5, y: 0.5) $0.transform = CGAffineTransformScale($0.transform, 16.0/9.0, 1.0) }) infoView.alpha = 1.0 }) case .full: UIView.animate(withDuration: 0.3, delay: TimeInterval(0.0), animations: { [self] in // NON PHYSICAL BUTTON self.videoPlayerView.layer.anchorPoint = CGPointMake(0.1, 0.5) // PHYSICAL BUTTON //self.videoPlayerView.layer.anchorPoint = CGPointMake(0.188, 0.5) videoPlayerView.transform = CGAffineTransform(rotationAngle: .pi/2.0) videoPlayerView.transform = CGAffineTransformScale(videoPlayerView.transform, 16.0/9.0, 16.0/9.0) // NON PHYSICAL BUTTON self.videoPlayerControlView.layer.anchorPoint = CGPointMake(0.235, -5.0) // PHYSICAL BUTTON //self.videoPlayerControlView.layer.anchorPoint = CGPointMake(0.3225, -5.0) videoPlayerControlView.transform = CGAffineTransform(rotationAngle: .pi/2.0) videoPlayerControlView.transform = CGAffineTransformScale(videoPlayerControlView.transform, 16.0/9.0, 1.0) videoPlayerControlView.playStatusControlButton.layer.anchorPoint = CGPoint(x: 0.8, y: 0.5) videoPlayerControlView.screenSizeControlButton.layer.anchorPoint = CGPoint(x: 0.2, y: 0.5) [videoPlayerControlView.playStatusControlButton, videoPlayerControlView.screenSizeControlButton].forEach({ $0.transform = CGAffineTransformScale($0.transform, 9.0/16.0, 1.0) }) infoView.alpha = 0.0 }) } }
결론
The text was updated successfully, but these errors were encountered:
jeong-hyeonHwang
No branches or pull requests
Custom Video Player: 두 번째 시도
구현 결과
CustomVideoPlayer02.MP4
첫 번째 시도에서 VideoPlayerControlView에서의 버튼 스케일 관련 이슈 해결을 위해 아래의 것들을 시도
1. ViewController Hierarchy 재작성
2. Scale 변환을 OnlyVideoPlayerView, VideoPlayerControlView 각각에 적용
결론
-> 그리고 여기서 문득 뇌리를 스치는 PikiPick...Orientation...Constraints Update...
The text was updated successfully, but these errors were encountered: