Code style change

This commit is contained in:
Arkadiusz Fal
2022-08-13 16:46:45 +02:00
parent 661de78ab3
commit c51b9dd8e8
8 changed files with 35 additions and 40 deletions

View File

@@ -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()
}

View File

@@ -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() }