WIP
This commit is contained in:
@@ -11,7 +11,7 @@ import AVKit
|
||||
struct ExternalWorkoutDetailView: View {
|
||||
@StateObject var bridgeModule = BridgeModule.shared
|
||||
@State var avPlayer = AVPlayer(url: URL(string: "https://dev.werkout.fitness/media/exercise_videos/2_Dumbbell_Lateral_Lunges.mp4")!)
|
||||
@AppStorage("showNSFWVideos") private var showNSFWVideos = false
|
||||
@AppStorage("thotStyle") private var thotStyle: ThotStyle = .never
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
@@ -54,7 +54,7 @@ struct ExternalWorkoutDetailView: View {
|
||||
}
|
||||
}
|
||||
.onChange(of: bridgeModule.currentExercise, perform: { newValue in
|
||||
if let videoURL = newValue?.videoURL(nsfw: showNSFWVideos) {
|
||||
if let videoURL = newValue?.videoURL(thotStyle: thotStyle) {
|
||||
avPlayer = AVPlayer(url: videoURL)
|
||||
avPlayer.play()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user