mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Code style change
This commit is contained in:
@@ -455,7 +455,8 @@ final class AVPlayerBackend: PlayerBackend {
|
||||
switch playerItem.status {
|
||||
case .readyToPlay:
|
||||
if self.model.activeBackend == .appleAVPlayer,
|
||||
self.isAutoplaying(playerItem) {
|
||||
self.isAutoplaying(playerItem)
|
||||
{
|
||||
self.model.updateAspectRatio()
|
||||
self.model.play()
|
||||
}
|
||||
|
@@ -9,9 +9,7 @@ extension PlayerModel {
|
||||
}
|
||||
|
||||
func play(_ videos: [Video]) {
|
||||
videos.forEach { video in
|
||||
enqueueVideo(video, loadDetails: false)
|
||||
}
|
||||
videos.forEach { enqueueVideo($0, loadDetails: false) }
|
||||
|
||||
#if os(iOS)
|
||||
onPresentPlayer = { [weak self] in self?.advanceToNextItem() }
|
||||
|
Reference in New Issue
Block a user