Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview video inapp before saving to photo library #89

Open
moh1122 opened this issue Jun 29, 2019 · 2 comments
Open

preview video inapp before saving to photo library #89

moh1122 opened this issue Jun 29, 2019 · 2 comments

Comments

@moh1122
Copy link

moh1122 commented Jun 29, 2019

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

@hpayami
Copy link

hpayami commented Jul 4, 2019

Hello
I have to know too. Same Issue.

@dsmailes
Copy link

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
                   }
                   
               })
           }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants