Skip to content

很方便的实现自定义照相机和摄像机, 本身是一个view, 可以自定义形状和位置等, 方便的闪光灯, 前后摄像头切换...(totally customize the camera , making the camera just the way you like)

License

jasnig/CameraView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CameraView

很方便的实现自定义照相机和摄像机, 本身是一个view, 可以自定义形状和位置等, 方便的闪光灯, 前后摄像头切换...(totally customize the camera )

####最终使用的效果之一

Snip20160710_1.png

####Usage

  • first prepareCamera

    let isSuccess = cameraView.prepareCamera()

  • second capturing photo like this

    cameraView.getStillImage { (image, error) in print(image) }

  • or capturing video like this

	// start capturing video
    cameraView.startCapturingVideo()

	// finish capturing video and get the video file
	cameraView.stopCapturingVideo(withHandler: { (videoUrl, error) in
                    print(videoUrl)
                })

####如果你在使用中遇到问题: 可以通过简书私信给我

License

CameraView is released under the MIT license. See LICENSE for details.

About

很方便的实现自定义照相机和摄像机, 本身是一个view, 可以自定义形状和位置等, 方便的闪光灯, 前后摄像头切换...(totally customize the camera , making the camera just the way you like)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages