ARVideoKit icon indicating copy to clipboard operation
ARVideoKit copied to clipboard

preview video inapp before saving to photo library

Open moh1122 opened this issue 5 years ago • 2 comments

Hello I Started to use ARVideokit in my project but can you help me to preview the video inapp before saving to photo library. I want to add the share button while previewing the video inside the app and then add a save button to save it to photo library

moh1122 avatar Jun 29 '19 20:06 moh1122

Hello I have to know too. Same Issue.

hpayami avatar Jul 04 '19 03:07 hpayami

Use the closure to get the URL and pass it to an AVPlayer:

func tapButton(isRecording: Bool) {

     if isRecording {
               recorder?.record()
           } else {
               recorder?.stop({ (url) in
                   DispatchQueue.main.async {
                       //do something with the url, e.g. pass it to an AVPlayer here
                   }
                   
               })
           }
}

dsmailes avatar Jun 26 '20 10:06 dsmailes