mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
This commit is contained in:
parent
ff6b01c429
commit
36b818835b
2 changed files with 13 additions and 5 deletions
Binary file not shown.
|
|
@ -120,10 +120,19 @@ struct CustomMediaPlayer: View {
|
|||
VStack {
|
||||
Spacer()
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
HStack(alignment: .bottom) {
|
||||
if showControls {
|
||||
VStack(alignment: .leading) {
|
||||
Text("Episode \(episodeNumber)")
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.gray)
|
||||
Text(title)
|
||||
.font(.headline)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
if duration - currentTime <= duration * 0.06 {
|
||||
if duration - currentTime <= duration * 0.07 {
|
||||
Button(action: {
|
||||
player.pause()
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
|
|
@ -233,7 +242,6 @@ struct CustomMediaPlayer: View {
|
|||
}
|
||||
}
|
||||
)
|
||||
.frame(height: 45)
|
||||
.padding(.bottom, 10)
|
||||
}
|
||||
}
|
||||
|
|
@ -292,4 +300,4 @@ struct CustomMediaPlayer: View {
|
|||
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue