Can imageView display live video? (iOS) - ios

I have an app that can capture a photo, then set it to the iamgeView. now I want my app without capturing the photo, the imageView.image is the whole camera view, can iOS do this?

No, UIImageView cannot display the live camera feed. It sounds like you want to use an AVCaptureVideoPreviewLayer. There are many examples of how to use it available for free on the Internet. Check out Appleā€™s own AVCam sample code for one.

Related

Picture in Picture camera swift

I'm trying to get the Picture in Picture working for my camera view on my iPad.
I see on the documentation that we can do it more easily on iOS 16 for video calls.
The result I'm trying to get is to be able to see the camera of the user in PiP while being in the background.
One way of doing that is to fake a video call (like Zoom, Messenger, etc) but that seems overkill. I am able to view my video using UIImagePickerController but I'm wondering if there is an easy way to integrate it in PiP?

Add scroll playback controls to AVPlayer like in Photos app

I'm creating AVPlayer view to watch the stream from CCTV. And I want to make playback controls in a video like in Photos app at iPhone(open Photos, play some video, at the bottom, it will be UIScrollView with some screenshots of your video) like at image below.
May I ask you some help on how to create something like this?
And this is my first question here, so sorry if something wrong. =)
ScrollView playback
AVPlayer cannot do this for streaming. The suggestion made on snapshots would also not be close to your want of getting the same behaviour as on local preview of videos in the Photos App on iOS.
If you are looking for this kind of experience I would recommend heading over to movi.ai to get your hands on our cross platform solution with this ready out of the box.

How to put the camera preview into a UIImageView?

I want to put the camera live view (back camera) inside the ViewController in iOS in Swift but I don't know how to do it.
Please, search for answers first and if you do not found then come and ask.
Here I am giving some which I found it here only. you can get more.
How to Add Live Camera Preview to UIView
Take photos with live video preview using AVFoundation

How to incorporate editing features in native camera in IOS

I have an application that allows user to click a photo and upload I want to allow the user to also be able to rotate or crop after they take the image
How can I do it I am new to development any sources or tutorials that can help?
I am developing using Objective-C.
You can find Apple's sample code on capturing photos here.
There is a property named allowsEditing in the UIImagePickerController. Try playing with that.

iOS App: AVFoundation Video camera recording delegates

I am trying to develop an app that records the video using the rear camera.
I want the video to be tweaked (adding overlay image, green screen) before saving it to a file.
I am using AVFoundation, and have researched anywhere, but I still cant make the correct codes to preview and record (without the tweaking)
Some codes that Iget from the internet use BufferDelegate, the rest are using RecordingDelegate.
Do I need to use both to achieve what I want? or is it just one ofthem?
Could you please pinpoint me how I can achieve this?

Resources