# AVFoundation_ray
Updates Ray Wenderlich's code for AVFoundation Video, <strong>from Swift 2 to Swift 4 , iOS 9 to iOS 11</strong>, 


<hr>


相关博客地址 : [拍照聚焦和曝光，AVFoundation 简明教程 site: juejin](https://juejin.im/post/5bc2123ee51d450e6c75157d)


<hr>

### The first one: Video Playback 

* [01 - starter](https://github.com/BoxDengJZ/AVFoundation_ray/archive/v1.0.0.zip)

* [01 - finished](https://github.com/BoxDengJZ/AVFoundation_ray/archive/v1.0.1.zip)

 增加播放完成后， 自动退出

<hr>

### The second one: Capturing Media, Images
拍照


* [01 - challenge , 02 - starter ](https://github.com/BoxDengJZ/AVFoundation_ray/archive/v1.0.2.zip)

01 , check project folder QuickPlay

#### 02, check  project folder PenguinCam

* [ 02 - finished ](https://github.com/BoxDengJZ/AVFoundation_ray/archive/v1.0.3.zip)

Updated related API to iOS 11 like `AVCapturePhotoOutput`, 
 save photo to a custom album.  
 
 自定义相册，
 
 更新 API ， 到 AVCapturePhotoOutput
 
* [ 02 - challenge ](https://github.com/BoxDengJZ/AVFoundation_ray/archive/v1.0.4.zip)

corrected challenge pdf errors. 


<hr>


### 3: Capturing Media: Video
拍视频


01 , check project folder QuickPlay


02,  check project folder PenguinCam

####  03,   check project folder PenguinCam_VIdeo
第三小节，就看这个工程 PenguinCam_VIdeo 

