ios - API to capture Live Photos in iOS9 -


i can't find api capture live photos. did miss something?

apple release docs

live photos

live photos new feature of ios 9 allows users capture , relive favorite moments richer context traditional photos. when user presses shutter button, camera app captures more content along regular photo, including audio , additional frames before , after photo. when browsing through these photos, users can interact them , play captured content, making photos come life.

ios 9.1 introduces apis allow apps incorporate playback of live photos, export data sharing. there new support in photos framework fetch phlivephoto object phimagemanager object, used represent data comprises live photo. can use phlivephotoview object (defined in photosui framework) display contents of live photo. phlivephotoview view takes care of displaying image, handling user interaction, , applying visual treatments play content.

you can use phassetresource access data of phlivephoto object sharing purposes. can request phlivephoto object asset in user’s photo library using phimagemanager or uiimagepickercontroller. if have sharing extension, can phlivephoto objects using nsitemprovider. on receiving side of share, can recreate phlivephoto object set of files exported sender.

during keynote, mentioned facebook support live photos, suspect there has way capture live photos.

uiimagepickercontroller looks allow capture of live photos.

working live photos

live photos camera app feature on supported devices, enabling picture not single moment in time include motion , sound moments before , after capture. phlivephoto object represents live photo, , phlivephotoview class provides system-standard, interactive user interface displaying live photo , playing content. live photos still photos. when use image picker controller capture or choose still images (by including kuttypeimage type in mediatypes array), assets captured live photos still appear in picker. however, when user chooses asset, delegate object receives uiimage object containing still-image representation of live photo. obtain full motion , sound content when user captures or chooses live photo image picker, must include both kuttypeimage , kuttypelivephoto types in the mediatypes array. more information, see uiimagepickercontrollerlivephoto in uiimagepickercontrollerdelegate protocol reference.

https://developer.apple.com/library/prerelease/ios/documentation/uikit/reference/uiimagepickercontroller_class/index.html#//apple_ref/occ/cl/uiimagepickercontroller


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -