Integrating Live Photos in my app - ios

I have some live photos that I am trying to use in my app. I am kind of confused on how to integrate them so I can use it in the app. I currently have an image view, but how do I add the live photo to it?

There is really no simple out-of-the-box API from Apple to integrate Live Photo in iOS apps.
That being said, there's an interesting article that has been going around lately which will explain what Live Photo is under the hood and how you can use it.

PHLivePhoto & PHLivePhotoView are available in iOS 9.1+
https://developer.apple.com/library/ios/documentation/Photos/Reference/PHLivePhoto_Class/index.html#//apple_ref/occ/cl/PHLivePhoto
https://developer.apple.com/library/ios/documentation/PhotosUI/Reference/PHLivePhotoView_Class/
These should be all you need to support Apple's Live Photos in your app.

Related

Convert a video into an IOS Live Photo format without an Apple device

I'm currently making live/animated wallpapers for Android phones, which is pretty easy with GIF/Mp4 files. But I would also like to make the live wallpapers compatible natively with ios/iPhones. I've seen many tutorials on how to convert a video to a Live photo but they all involve some kind of app you need to install on your IPhone. Issue is, I don't own an iPhone or any iOS device to do that and apparently iOS emulators are not a thing, so my question is :
Is it possible to convert a (mp4) video to an iOs Live photo through a 3rd party ? If so, how would you do it ?
I'm pretty inexperienced with the iOS environnement so thank you for your help !
Well, a live photo is a container that holds both a .jpeg and a H.264-encoded .mov file. More details here.
Do you have an Apple computer to do so, or do you want to create it independently from any apple hardware?
For the first case, there are a bunch of (demo) applications on github you could take a look into.
For the second case, I'm not sure if anything exists.

How to integrate WebRTC with ios app swift?

I need to create an app that holds audio and video calling functionality. Does anyone have idea about which is a free library for this functionality ? And how to manage it properly in my app ?
I used AppRTC in my projects
You should implement ARDAppClientDelegate and RTCEAGLVideoViewDelegate protocols on ViewController on order to use this library.
You can find Swift examples on Github

Implementing iOS camera upload

Dropbox, Google Photo and other apps support something called "Camera Uploads" option. This uploads all new photos were taken by the device automatically w/o need to launch the application.
How to implement similar functionality? What APIs to use? Are there dev guides describing the solution or part of it?

Image sharing in iOS

In iOS I noticed you can select a photo in your Photo app and then share it using other apps (eg. Whatsapp, Telegram, etc.). I would like to implement the same functionality in my app, but I don't know where to start. Can you help me? The things I don't understand are:
how my app can be listed between the apps that can share images;
how my app "knows" what to do when a user selects an image;
I know this is basic, maybe trivial, but I searched a little maybe using the wrong keywords, I dunno.
Any help is appreciated.
Here is a reference on accessing images iOS:
Open gallery with photos and videos
Here are some references on sharing images with iOS:
Sharing and Actions
App Extension Essentials

Is it possible to take a photo with an iPad from a web page?

I'm building a web intranet app that will track inventory and I would like to be able to take a photo of each item using the built in camera from an iPad. Is this possible?
I've done a similar thing with barcodes using an app, but I haven't found anything that will do the same with a photo yet.
This stack overflow question may help:
HTML5 Camera Access Through Browser in iOS
#user295691 writes:
In IOS6 apple supports this via the < input type=file > tag. I
couldn't find a useful link in Apple's developer documentation, but
there's an example here
http://www.aaronlumsden.com/articles/ios6-the-benefits-for-html5-web-app-development/
You can use PhoneGap framework to achieve this. JavaScript is used as bridge between Web app and Native functionality.

Resources