mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix properties access
This commit is contained in:
parent
47d68d7948
commit
59e5fcb37d
@ -488,7 +488,7 @@ final class AVPlayerBackend: PlayerBackend {
|
|||||||
if self.model.activeBackend == .appleAVPlayer,
|
if self.model.activeBackend == .appleAVPlayer,
|
||||||
self.isAutoplaying(playerItem)
|
self.isAutoplaying(playerItem)
|
||||||
{
|
{
|
||||||
if model.aspectRatio != aspectRatio {
|
if self.model.aspectRatio != self.aspectRatio {
|
||||||
self.model.updateAspectRatio()
|
self.model.updateAspectRatio()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -644,7 +644,7 @@ final class AVPlayerBackend: PlayerBackend {
|
|||||||
self.model.objectWillChange.send()
|
self.model.objectWillChange.send()
|
||||||
|
|
||||||
if player.rate != Float(self.model.currentRate) {
|
if player.rate != Float(self.model.currentRate) {
|
||||||
if model.avPlayerUsesSystemControls {
|
if self.model.avPlayerUsesSystemControls {
|
||||||
self.model.currentRate = Double(player.rate)
|
self.model.currentRate = Double(player.rate)
|
||||||
} else {
|
} else {
|
||||||
player.rate = Float(self.model.currentRate)
|
player.rate = Float(self.model.currentRate)
|
||||||
|
Loading…
Reference in New Issue
Block a user