WIP
This commit is contained in:
@@ -82,6 +82,14 @@ struct PlayerView: UIViewRepresentable {
|
||||
}
|
||||
|
||||
class VideoURLCreator {
|
||||
class func otherVideoType(forVideoURL videoURL: URL) -> ThotStyle {
|
||||
var otherVideoStyle = ThotStyle.never
|
||||
if videoURL.absoluteString.contains("exercise_videos") {
|
||||
otherVideoStyle = .always
|
||||
}
|
||||
return otherVideoStyle
|
||||
}
|
||||
|
||||
class func videoURL(thotStyle: ThotStyle, defaultVideoURLStr: String?, exerciseName: String?, workout: Workout?) -> URL? {
|
||||
var urlString: String?
|
||||
|
||||
@@ -102,6 +110,8 @@ class VideoURLCreator {
|
||||
} else {
|
||||
urlString = defaultVideoURLStr
|
||||
}
|
||||
case .off:
|
||||
return nil
|
||||
}
|
||||
|
||||
if let urlString = urlString,
|
||||
|
||||
Reference in New Issue
Block a user