DeepARSDK / quickstart-ios-swift

DeepAR SDK for iOS example project
https://developer.deepar.ai
MIT License
23 stars 9 forks source link

Customize the video save url for deep AR instance #10

Closed Zulqurnain24 closed 7 months ago

Zulqurnain24 commented 3 years ago

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

JelenaKB commented 3 years ago

Sorry, the video save URL can't be changed at this time. We will look into it.

igor-aradski commented 7 months ago

This is now possible with the functions setVideoRecordingOutputName and setVideoRecordingOutputPath.