VeinGuo / VGPlayer

📺 A simple iOS video player by Vein.
https://github.com/VeinGuo/VGPlayer
MIT License
400 stars 101 forks source link

FullScreen not possible #52

Closed Sub-Zero-1 closed 6 years ago

Sub-Zero-1 commented 6 years ago

Hi! I can't get the player to full screen. Any ideas? The example app is working, but once copied your exampel code 1:1 into my application it just not going into orientation:landscaperight. Any ideas?

Sub-Zero-1 commented 6 years ago

I could not figure out what caused it, but I solved it following:

override func viewDidLoad() { super.viewDidLoad() //rotate complete view, so we get a landscape orientation self.view.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi / 2 * 1)) ......
}