     public var transform: CGAffineTransform
 
     /// Codec used to encode video, AV dictionary key AVVideoCodecKey
-    public var codec: AVVideoCodecType = .h264
+    public var codec: String
 
     /// Profile level for the configuration, AV dictionary key AVVideoProfileLevelKey (H.264 codec only)
     public var profileLevel: String?

        if let options = self.options {
            return options
        } else {
            var config: [String: Any] = [AVVideoCodecKey: self.codec.rawValue]
            if self.generateThumbnail {
                let settings = AVCapturePhotoSettings()
                // iOS 11 GM fix

    // MARK: - object lifecycle
    
    override init() {
        self.codec = AVVideoCodecJPEG
        self.generateThumbnail = false
        self.flashMode = .off
        super.init()
