API to capture Live Photos in iOS9

后端 未结 4 394
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 11:46

I can\'t find any API to capture live photos. Did I miss something?

Apple release DOCs

Live Photos

Live Photos is a n

4条回答
  •  温柔的废话
    2021-02-02 12:27

    There is no API for manual capture of Live Photos (that is, nothing analogous to the AVCapture APIs that offer direct control for capturing regular photos or video).

    UIImagePickerController, which normally presents a UI allowing the user to capture a photo or video, can also capture Live Photos in iOS 9.1 or later. To allow Live Photo capture, set the image picker controller's mediaTypes property to include both kUTTypeImage and kUTTypeLivePhoto.

提交回复
热议问题