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

How to set audio url to nil #72

Open
abeticlairon opened this issue Jul 10, 2020 · 2 comments
Open

How to set audio url to nil #72

abeticlairon opened this issue Jul 10, 2020 · 2 comments

Comments

@abeticlairon
Copy link

Thank you for this library! I want to create a video from a UIImage array but with no audio. I am unable to set andAudios to nil; how can I create a video without audio?

@tgeorgieva
Copy link
Collaborator

Please, read through the README.md - it’s there for a reason and there are examples and/or explanations for all features.

If you leave the audio array empty and implement videoDurationInSeconds, the generated video contains only the images without audio.

@hamzaozturk
Copy link

If you want to create a video without audio, you need to specify video duration, and send empty array to the andAudios parameter.

VideoGenerator.videoDurationInSeconds = 10
VideoGenerator.current.generate(withImages: [image1, image2,...], andAudios: [], andType: .multiple)

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