import AVFoundation.AVMediaFormat
enum MediaFormat {
case MOV
case MP4
case M4V
var filenameExtension: String {
switch self {
case .MOV:
return ".mov"
case .MP4:
return ".mp4"
case .M4V:
return ".m4v"
}
}
var fileFormat: String {
switch self {
case .MOV:
return AVFileTypeQuickTimeMovie
case .MP4:
return AVFileTypeMPEG4
case .M4V:
return AVFileTypeAppleM4V
}
}
}
Created
July 2, 2016 14:01
-
-
Save Limon-O-O/0d20be2b7f9c7161ceb601ac063401bb to your computer and use it in GitHub Desktop.
Video file formats supported in iPhone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment