ipad-2

Run multiple AVCaptureSessions or add multiple inputs

流过昼夜 提交于 2020-01-20 01:44:30
问题 I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session

Run multiple AVCaptureSessions or add multiple inputs

痞子三分冷 提交于 2020-01-20 01:41:27
问题 I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session

How to check Facetime Support in iOS devices (hardware check)

廉价感情. 提交于 2020-01-03 05:01:10
问题 I want to check if iOS device I am using has support for Facetime call. I don't want to check the iOS version on the device, rather if the device has the hardware support to initiate a Facetime call. For example: I have an iPad 1 with iOS version 4.0 and above, but if I don't have a camera (or a front camera), the Facetime call should not initiate. How can I do this? 回答1: Try using canOpenUrl method with FaceTime scheme, as follows: [[UIApplication sharedApplication] canOpenURL: [NSURL

Detect between the iPad and iPad2 via Jquery / Javascript?

限于喜欢 提交于 2020-01-02 08:40:08
问题 Is there anyway to detect between the iPad and iPad2 via Jquery / Javascript? Or even PHP or some other way from a website? 回答1: I have an iPad and an iPad2 with the same iOS version and i don't this this is currently possible it's producing the same exact user agent on both devices. iPad Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3 iPad2 Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML,

UIControlEventValueChanged not working when i tapped an already selected segment section

大憨熊 提交于 2019-12-25 04:58:11
问题 My aim is to trigger UIControlEventValueChanged delegate again when i tapped an already selected segment . So i have referred the below links uisegmentedcontrol-register-taps-on-selected-segment maintaining-selection-in-uisegmentedcontrol As per the links i have created a uisegmentedcontrol subclass , implemented the - (void) setSelectedSegmentIndex:(NSInteger)toValue { method and wrote the codes (from the above links). Its worked fine with Ipad1. However the setSelectedSegmentIndex in the

Cocos2d EXC_BAD_ACCESS

怎甘沉沦 提交于 2019-12-23 16:34:18
问题 I am new to cocos2d and suddenly got this EXC_BAD_ACCESS, I made a new winning menu and i got the error I think the error is because i called a released object, but i dont release anything? My Debug Console had no error, which is strange here is my Level_1.m // // Level_1.m // iPadGame // // Created by My Name on 1/25/12. // Copyright 2012 __MyCompanyName__. All rights reserved. // #import "Level_1.h" #import "HelloWorldLayer.h" CCSprite *player; CCSprite *enemy; CCSprite *enemy2; CCSprite

Web cam type video camera to iPad2 streaming over wired communication

拟墨画扇 提交于 2019-12-23 08:59:09
问题 I want to develop an App that requires wired communication between Web cam type video camera and iPad2. Basically I will directly connect Web cam and iPad2 using cable and when I start web cam, whatever images(picture/video) captured by web cam should be displayed on iPad2. Based on my research on this I found that iPad2 cable is only made for iPod Program so the connector is not a traditional USB port I can't do direct communication between web cam and iPad2. Am I missing anything? We are

Video freezes on camera switch with AVFoundation

孤者浪人 提交于 2019-12-18 12:36:40
问题 I made an app with a feature to capture and save video. I have used AVFoundation for that and Apple's AVCam has been my guide. I hope I can make it clear: Everything works fine until I release the videoViewController that handles the AVCamCaptureManager for the first time (In AVCam that would be AVCamViewController). After that when I create it again, the video freezes right after camera switch. Even re-run will not help, nor will clean, or device reset. (Sometimes one of the things help, but

Video freezes on camera switch with AVFoundation

痞子三分冷 提交于 2019-12-18 12:36:30
问题 I made an app with a feature to capture and save video. I have used AVFoundation for that and Apple's AVCam has been my guide. I hope I can make it clear: Everything works fine until I release the videoViewController that handles the AVCamCaptureManager for the first time (In AVCam that would be AVCamViewController). After that when I create it again, the video freezes right after camera switch. Even re-run will not help, nor will clean, or device reset. (Sometimes one of the things help, but

Any updated http segmenter for IPad / iPhone video streaming with latest ffmpeg?

坚强是说给别人听的谎言 提交于 2019-12-13 21:47:20
问题 I would like to know if there are any http file segmenters with support for the latest ffmpeg libraries? So far I have found some projects, although I haven't been able to compile them using ffmpeg 0.9 http://svn.assembla.com/svn/legend/segmenter/ http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/ Thanks! 回答1: I created a fork at github and added support for the latest FFMPEG. https://github.com/interpegasus/HTTP-Live-Video-Stream