fixed tv rotation

This commit is contained in:
Bilal
2024-08-14 00:37:47 +05:30
parent b16dbeb6bf
commit 400974e58c
2 changed files with 4 additions and 4 deletions

View File

@@ -68,8 +68,8 @@ class PlayerVC: JWPlayerViewController, JWPlayerViewControllerDelegate {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
DispatchQueue.main.async { [weak self] in
guard let self else{return}
// DispatchQueue.main.async { [weak self] in
// guard let self else{return}
appDelegate.deviceOrientation = .landscapeRight
let value = UIInterfaceOrientation.landscapeRight.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
@@ -79,7 +79,7 @@ class PlayerVC: JWPlayerViewController, JWPlayerViewControllerDelegate {
//Disable Picture in Picture
playerView.allowsPictureInPicturePlayback = false
playerView.captionStyle = .none
}
// }
}
override func viewWillDisappear(_ animated: Bool) {

View File

@@ -440,7 +440,7 @@ class ThemeOneVM{
vc.config = config
vc.dismissTapped = self.tapped
vc.contentType = .liveStream
vc.modalPresentationStyle = .fullScreen
// vc.modalPresentationStyle = .fullScreen
vc.modalTransitionStyle = .crossDissolve
// Present the PlayerVC