Questions tagged [avcam]

iOS Audio Video Foundation capture APIs for recording movies and taking still images.

AVCam sample program of Apple demonstrates how to use the AV Foundation capture APIs for recording movies and taking still images.

86 questions
4
votes
1 answer

AVCam vs UIImagepicker

I m new in iPhone, i want to know what is the difference b/w AVFoundation's AVCam and UIImagePicker for camera. When we should go for AVCam and when for UIImagePicker Thanks In advance
sachin
  • 1,015
  • 4
  • 11
  • 24
4
votes
1 answer

Converting BGRA to ARGB

I'm reading this tutorial on getting pixel data from the iPhone camera. While I have no issue running and using this code, I need to take the output of the camera data (which comes in BGRA) and convert it to ARGB so that I can use it with an…
Dany Joumaa
  • 2,030
  • 6
  • 30
  • 45
3
votes
1 answer

iPhone Camera Focussing

I used the below code for focusing the iphone camera. But it is not working. I take this code from the AVCam sample code of Apple. Am I doing anything wrong? Is there any method to detect if the iPhone did focussing? -(void)…
isarathg
  • 858
  • 1
  • 19
  • 37
3
votes
3 answers

iPhone App - Show AVFoundation video on landscape mode

I am using the AVCam example App from Apple. This example uses AVFoundation in order to show video on a view. I am trying to make from the AVCam a landscape App with no luck. When screen orientation changes the video is shown rotated on the view. Is…
bashan
  • 3,572
  • 6
  • 41
  • 58
3
votes
1 answer

How to implement AVCam using Swift 3?

This sample code covers implementation only for ios11. Can someone provide some example and/or hints for me to understand and code further?
temunix2
  • 31
  • 2
3
votes
0 answers

AVCam preview gets stuck after phone unlocking

We are developing a ios camera app which has features like : picture/video capture, media file management, media sharing etc. Our landing screen is the camera preview screen. This has many buttons to navigate to other screens. If we are at the…
kiran
  • 525
  • 1
  • 9
  • 26
3
votes
4 answers

UIWebView to Play Local and downloaded Video

I want to play downloaded video using UIWebview. I get webkiterrordomain code=204 error. but if i play video from resources folder it run perfect. //from resources folder run perfect NSString *tempurl = [[[NSBundle mainBundle] resourcePath]…
Mehar
  • 61
  • 1
  • 8
2
votes
0 answers

Swift isLockingFocusWithCustomLensPositionSupported always returns false

I want to set the lens distance of my iPhoneX to a constant. In order to check if that is supported, I check the isLockingFocusWithCustomLensPositionSupported property of my device, as described in the documentation here:…
Bghaak
  • 1,150
  • 14
  • 24
2
votes
0 answers

Red bar issue when application goes in background(Using AVCaptureSession) and AVCamPreviewLayer jerk

I developed a custom camera functionality using Apple's sample code AVCAM and in my application the background modes are enabled which is causing red bar issue. I create AVCaptureSession and then add inputs(.Video,.Audio) and outputs in…
Nouman
  • 105
  • 1
  • 11
2
votes
1 answer

iOS VideoPreview Landscape is upside down

For some reason when I orient the phone to landscape mode the camera preview is upside down (flipped horizontally). I'm using the sample project that Xamarin ported; AVCamBarcode. I ended up coming up with a half complete fix by using…
vdidxho
  • 165
  • 1
  • 14
2
votes
1 answer

How to enable Stabilization and HDR in IOS Camera?

What I Did:- I have tried to enable stabilization and HDR but it's not working.I think I was in right path.When I was trying to check that the current device supports stabilization and HDR in that both case I had got only false case in all…
Murugesh
  • 59
  • 1
  • 9
2
votes
2 answers

AVCam save full screen captured image

I am using AVCam made by apple for my custom camera view. Honestly it is not to simple to understand what's going on in the class AVCamViewController if you see it at first time. Right now I am interested how they set frame of captured image. I…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
2
votes
0 answers

No visible @interface for AVCamViewController declares the selector layer

- (void)setSession:(AVCaptureSession *)session { ((AVPlayerLayer *)[self layer]).videoGravity = AVLayerVideoGravityResizeAspectFill; ((AVPlayerLayer *)[self layer]).bounds = ((AVPlayerLayer *)[self layer]).bounds; …
Akbapu
  • 779
  • 2
  • 6
  • 14
2
votes
1 answer

Using Novocaine and AVCam together

My question is really simple. I want to record a movie using the AVCam sample project from Apple. While recording, I'd like to filter the audio channel to extract a bunch of information I will use later (I found Novocaine+NVDSP to be the best…
marzapower
  • 5,531
  • 7
  • 38
  • 76
2
votes
2 answers

Landscape in AvCam iOS 6

I am new to iOS, trying to create custom camera using AvCam. I am having trouble getting landscape orientation preview -- it rotates the view 90 degree clockwise and shows it on a half screen. I get this message -- WARNING: -[ setOrientation:] is…
Laz
  • 538
  • 7
  • 12