Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79d2810

Browse files
Update ExtPlayerProtocol.swift
1 parent 96e3165 commit 79d2810

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

‎Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -224,22 +224,22 @@ internal extension ExtPlayerProtocol {
224224
}
225225

226226
switch item.status {
227-
case .unknown: break
228-
case .readyToPlay:
229-
Task { @MainActor in
230-
self?.delegate?.duration(item.duration)
231-
}
232-
case .failed:
233-
Task { @MainActor in
234-
let error = self?.currentItem?.error
235-
self?.onError(.failedToLoad(error))
227+
case .unknown: break
228+
case .readyToPlay:
229+
Task { @MainActor in
230+
self?.delegate?.duration(item.duration)
231+
}
232+
case .failed:
233+
Task { @MainActor in
234+
let error = self?.currentItem?.error
235+
self?.onError(.failedToLoad(error))
236+
}
237+
@unknown default:
238+
Task { @MainActor in
239+
let error = self?.currentItem?.error
240+
self?.onError(.failedToLoad(error))
241+
}
236242
}
237-
@unknown default:
238-
Task { @MainActor in
239-
let error = self?.currentItem?.error
240-
self?.onError(.failedToLoad(error))
241-
}
242-
}
243243
}
244244
}
245245

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /