Usually this is the way we set the parameters for the deepAR instance. Can we customize the video save url path or with some other approach?
" let videoQuality = 0.1
let bitrate = 1250000
let frame = 30
let videoSettings:[AnyHashable : AnyObject] = [
AVVideoQualityKey : (videoQuality as AnyObject),
AVVideoAverageBitRateKey : (bitrate as AnyObject),
AVVideoExpectedSourceFrameRateKey : (frame as AnyObject)
]
let rect = CGRect(x: (isSolo ? 0.0 : 0.15), y: 0, width: (isSolo ? 1.0 : 0.5), height: 1)
Usually this is the way we set the parameters for the deepAR instance. Can we customize the video save url path or with some other approach?
" let videoQuality = 0.1 let bitrate = 1250000 let frame = 30 let videoSettings:[AnyHashable : AnyObject] = [ AVVideoQualityKey : (videoQuality as AnyObject), AVVideoAverageBitRateKey : (bitrate as AnyObject), AVVideoExpectedSourceFrameRateKey : (frame as AnyObject) ]
let rect = CGRect(x: (isSolo ? 0.0 : 0.15), y: 0, width: (isSolo ? 1.0 : 0.5), height: 1)
deepAR?.startVideoRecording(withOutputWidth: width, outputHeight: height, subframe: rect, videoCompressionProperties: videoSettings, recordAudio: true)"
Thanks in advance