mirror of
https://github.com/cranci1/Sora.git
synced 2026-05-14 14:01:08 +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 {
|
VStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
VStack {
|
VStack {
|
||||||
Spacer()
|
HStack(alignment: .bottom) {
|
||||||
HStack {
|
if showControls {
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
Text("Episode \(episodeNumber)")
|
||||||
|
.font(.subheadline)
|
||||||
|
.foregroundColor(.gray)
|
||||||
|
Text(title)
|
||||||
|
.font(.headline)
|
||||||
|
.foregroundColor(.white)
|
||||||
|
}
|
||||||
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
if duration - currentTime <= duration * 0.06 {
|
if duration - currentTime <= duration * 0.07 {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
player.pause()
|
player.pause()
|
||||||
presentationMode.wrappedValue.dismiss()
|
presentationMode.wrappedValue.dismiss()
|
||||||
|
|
@ -233,7 +242,6 @@ struct CustomMediaPlayer: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.frame(height: 45)
|
|
||||||
.padding(.bottom, 10)
|
.padding(.bottom, 10)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -292,4 +300,4 @@ struct CustomMediaPlayer: View {
|
||||||
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
UserDefaults.standard.set(duration, forKey: "totalTime_\(fullURL)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue