iphone-xs

How to use the stereo (2 channel) built in microphone in iPhone XS, inside AVAudioSession?

自古美人都是妖i 提交于 2020-05-15 08:41:53
问题 I'm trying to get both channels from the supposedly stereo rear microphone out of the iPhone XS but can only ever see a single channel at various points in the AVAudioSession and AVAudioSessionPortDescription's associated with the rear camera. I have tried using AVAudioSession APIs like setPreferredInputNumberOfChannels do { try session.setPreferredInputNumberOfChannels(2) } catch let error { debugPrint("\(error)") } But get an error: Error Domain=NSOSStatusErrorDomain Code=-50 Has anyone had

Why did H.264, MPEG-4 HE AAC stop working on iphoneXS/Max?

假装没事ソ 提交于 2019-12-22 07:01:12
问题 Issue regarding NEW hardware I have been investigating like crazy, and haven't found any hints to why my H.264 encoded videos have stopped working on these new devices. Context: Direct from the ios device, the original is sent to s3, aws elastic transcoder then encodes the original into a more compressed H.264 preset. As of yesterday, a coworker was reporting all videos being "black", now since deliveries on these devices are being fulfilled, i've gotten confirmation. Cannot reproduce this

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

流过昼夜 提交于 2019-12-08 08:24:33
问题 I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. 回答1: We have

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

会有一股神秘感。 提交于 2019-12-06 15:15:17
I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. We have tried searching for this property for AVCaptureDevice. However, not able to find the same. Solution: The

Why did H.264, MPEG-4 HE AAC stop working on iphoneXS/Max?

吃可爱长大的小学妹 提交于 2019-12-05 10:33:55
Issue regarding NEW hardware I have been investigating like crazy, and haven't found any hints to why my H.264 encoded videos have stopped working on these new devices. Context: Direct from the ios device, the original is sent to s3, aws elastic transcoder then encodes the original into a more compressed H.264 preset. As of yesterday, a coworker was reporting all videos being "black", now since deliveries on these devices are being fulfilled, i've gotten confirmation. Cannot reproduce this issue on simulator. The encoded videos that are not playing, i've listed the exif data below. Is there is

How to programmatically detect iPhone XS or iPhone X? [duplicate]

一世执手 提交于 2019-12-03 10:14:37
问题 This question already has answers here : Detect if the device is iPhone X (35 answers) Closed last year . One of my apps connects to a web app service that delivers device specific news to to the user. To adapt this to the latest iPhone versions I need to programmatically distinguish between the iPhone XS and iPhone X. How can this be done? [[UIScreen mainScreen] bounds].size was always a good starting point to tell the different devices apart. However, iPhone XS and iPhone X have the same

How to programmatically detect iPhone XS or iPhone X? [duplicate]

夙愿已清 提交于 2019-12-03 00:45:47
This question already has an answer here: Detect if the device is iPhone X 34 answers One of my apps connects to a web app service that delivers device specific news to to the user. To adapt this to the latest iPhone versions I need to programmatically distinguish between the iPhone XS and iPhone X. How can this be done? [[UIScreen mainScreen] bounds].size was always a good starting point to tell the different devices apart. However, iPhone XS and iPhone X have the same screen dimensions: 1125 x 2436. Thus using [[UIScreen mainScreen] bounds].size does not work in this case. Is there any other