 public class NextLevelPhotoConfiguration : NextLevelConfiguration {
 
     /// Codec used to encode photo, AV dictionary key AVVideoCodecKey
-    public var codec: AVVideoCodecType = .jpeg
+    public var codec: String
 
     /// True indicates that NextLevel should generate a thumbnail for the photo
     public var generateThumbnail: Bool

                config[AVVideoHeightKey] = NSNumber(integerLiteral: Int(height))
            }

            config[AVVideoCodecKey] = self.codec.rawValue
            
            if let scalingMode = self.scalingMode {
                config[AVVideoScalingModeKey] = scalingMode

        self.bitRate = NextLevelVideoConfigurationDefaultBitRate
        self.aspectRatio = .active
        self.transform = CGAffineTransform.identity
        self.codec = AVVideoCodecH264
        self.scalingMode = AVVideoScalingModeResizeAspectFill
        super.init()
    }
