Add all video versions for video input

This commit is contained in:
Christoph Hagen
2023-05-31 22:36:23 +02:00
parent 884d456e48
commit 36b2842ee9
2 changed files with 36 additions and 4 deletions

View File

@ -3,6 +3,7 @@ import Foundation
enum VideoType: String, CaseIterable {
case mp4
case m4v
case webm
var htmlType: String {
switch self {
@ -10,6 +11,8 @@ enum VideoType: String, CaseIterable {
return "video/mp4"
case .m4v:
return "video/mp4"
case .webm:
return "video/webm"
}
}
}