mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Aspect ratio improvements
This commit is contained in:
@@ -45,6 +45,7 @@ final class PlayerModel: ObservableObject {
|
||||
@Published var playerSize: CGSize = .zero { didSet {
|
||||
backend.setSize(playerSize.width, playerSize.height)
|
||||
}}
|
||||
@Published var aspectRatio = VideoPlayerView.defaultAspectRatio
|
||||
@Published var stream: Stream?
|
||||
@Published var currentRate: Float = 1.0 { didSet { backend.setRate(currentRate) } }
|
||||
|
||||
@@ -70,12 +71,6 @@ final class PlayerModel: ObservableObject {
|
||||
backend.setNeedsNetworkStateUpdates(true)
|
||||
}}
|
||||
|
||||
#if os(iOS)
|
||||
@Published var motionManager: CMMotionManager!
|
||||
@Published var lockedOrientation: UIInterfaceOrientation?
|
||||
@Published var lastOrientation: UIInterfaceOrientation?
|
||||
#endif
|
||||
|
||||
var accounts: AccountsModel
|
||||
var comments: CommentsModel
|
||||
var controls: PlayerControlsModel { didSet {
|
||||
@@ -487,6 +482,7 @@ final class PlayerModel: ObservableObject {
|
||||
currentItem = nil
|
||||
|
||||
backend.closeItem()
|
||||
aspectRatio = VideoPlayerView.defaultAspectRatio
|
||||
}
|
||||
|
||||
func closePiP() {
|
||||
|
Reference in New Issue
Block a user