mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 09:58:14 +00:00
Fix replaying item
This commit is contained in:
@@ -119,9 +119,11 @@ extension PlayerModel {
|
||||
remove(newItem)
|
||||
|
||||
currentItem = newItem
|
||||
currentItem.playbackTime = time
|
||||
|
||||
accounts.api.loadDetails(newItem, failureHandler: videoLoadFailureHandler) { newItem in
|
||||
self.playItem(newItem, at: time)
|
||||
let playTime = currentItem.shouldRestartPlaying ? CMTime.zero : time
|
||||
accounts.api.loadDetails(currentItem, failureHandler: videoLoadFailureHandler) { newItem in
|
||||
self.playItem(newItem, at: playTime)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user