Skip to content

ktorimaru/AVWriterExample

Repository files navigation

AVWriterExample

This project was created to help developers who are interested in experimenting with the Vision framework and other frameworks which are dependent on the use of the AVCaptureVideoDataOutputSampleBufferDelegate and AVCaptureAudioDataOutputSampleBufferDelegate protocols.

Currently the example does the following:

  1. Creates and displays a Preview layer which displays camera output in the correct orientation.
  2. Has a button to switch between the front and back camera.
  3. Can record video with the correct orientation.
  4. Saves the video to the Photo app.

I plan to add a bit of a tutorial to this Readme in the future.

Please note: This is NOT a production ready example! If you would like to help move it in that direction please feel free to issue "Pull requests".

If you like this, notes of encourgement are alway welcome.

PS: Much of this code came from this Stackoverflow article: https://stackoverflow.com/questions/51670428/avassetwriter-capturing-video-but-no-audio. Apple's AVCAM example provided insight for many of the issues I encountered. I need to figure out and update the copyright information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages