mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
parent
1490437537
commit
e39f4373bb
@ -103,7 +103,11 @@ struct PlaybackBar: View {
|
|||||||
return "loading..."
|
return "loading..."
|
||||||
}
|
}
|
||||||
|
|
||||||
let videoLengthAtRate = player.currentVideo!.length / Double(player.currentRate)
|
guard let video = player.currentVideo else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
let videoLengthAtRate = video.length / Double(player.currentRate)
|
||||||
let remainingSeconds = videoLengthAtRate - player.time!.seconds
|
let remainingSeconds = videoLengthAtRate - player.time!.seconds
|
||||||
|
|
||||||
if remainingSeconds < 60 {
|
if remainingSeconds < 60 {
|
||||||
|
Loading…
Reference in New Issue
Block a user