BMPlayer icon indicating copy to clipboard operation
BMPlayer copied to clipboard

Landscape on Potrait app

Open muzamilhassan1987 opened this issue 4 years ago • 2 comments

My app is in potrait mode only , but i need to rotate it when user press fullscreen button it show in full screen in potrait mode , with black background on whole screen and when user rotate it show in landscape mode in full screen

muzamilhassan1987 avatar Jun 30 '20 22:06 muzamilhassan1987

me too, I have the same issues.

Versus2017 avatar Sep 24 '20 07:09 Versus2017

Hi, if you use BMPlayer, you should override this function in BMPlayer.swift import AVFoundation import AVKit

    @objc fileprivate func fullScreenButtonPressed() {
        let playerViewController = AVPlayerViewController()
        playerViewController.player = avPlayer
        var responder : UIResponder = self
        repeat { responder = responder .next! } while !(responder is UIViewController)
        let parentVC = responder as! UIViewController
        parentVC.present(playerViewController, animated: true, completion: nil)
    }

Adakhan avatar Sep 30 '20 11:09 Adakhan