Capture Camera Footage and Display In a Fragment
Found a good example from Google for this, made some tweaks to get a preview of the camera and tap to save frame. Was initially going to use the Camera API but it is deprecated. Not a lot on camera2 but the example was very helpful: https://android.googlesource.com/platform/frameworks/base/+/fd88743/tests/Camera2Tests/CameraToo
Currently, the preview is in a SurfaceView inside a FrameLayout to allow us to add buttons or other things to the view. So we'll need to get it in a fragment.