Detect HDR mode on tvOS - uikit

I'm making an Apple TV app and need to play one of two video files based on whether the Apple TV is in HDR mode or not, but I can't find a way to detect HDR mode.
Does anyone know how to detect this? All I can find is UIScreen, and it only seems to provide the resolution and aspect ratio.

According to this answer from Apple staff it is recommended to have one playlist supporting HDR and SDR. AVFoundation can automatically select the most appropriate variant for the device, if you use UIScreen you will get the wrong answer because it is possible to turn HDR off from the tvOS settings and this will not be presented by checking the UIScreen.

Related

How can I detect programmatically if microphone/camera is enabled on macOS?

I'm in need of detecting if a microphone and/or camera is active but the only thing I found is iOS related only. The Apple documentation have examples (https://developer.apple.com/documentation/avfoundation/avaudiosession/responding_to_audio_session_interruptions) but this seems iOS only too. It seems there's no AVAudioSession on macOS. Can somebody give me a hint how can I achieve this?

how to create a video for iPod touch app video ?

for ppt presentation i want to create video for ipod touch app.
is their any possibility to create video
from Xcode using simulator
or directly from device
or any other possibility
thank you very much
Please see: Is there a way I can capture my iPhone screen as a video?
This post describes many ways to capture video. It looks like there isn't a completely intuitive way to record the video, but this post lists some of the options others have used for their applications.

Can I make QTKit Capture support an IP camera?

I've got an IP camera - an Axis M1114 - that I'd like to use as a QTKit Capture device. Only DV cameras and the iSight usually appear on this capture menu. Is there any way of getting the IP camera to appear in this list and work with QTKit Capture?
This might not be possible, but if it is, I'd appreciate any pointers at ways of going about it. Thanks!
I asked Apple engineers the same question on WWDC 2010. The answer was "No, you cannot make your own QTCaptureDevice". To record video from AXIS IP cameras we have developed our own framework. You can get frames from the camera and write them to a Quicktime movie. You can do it with QTKit, but works better in 32bit Quicktime framework.

Only support iPad2

I am making a app involve the use of camera. However, ipad1 does not support and crash when press the camera.
How can I choose that app only support ipad2 but not ipad1?
Is there anything i can set in the setting or any code i can type in?
Thank you all.
You can specify device requirements in the info.plist You would just specify that it needs a camera

simple record and play application!

I am trying to make a simple application which will store the sound said by user , say on click of record button and will play it back to him/her , say on click of play button.
Can anyone suggest me some appropriate way to do this ??
Thanks,
Miraaj
You can use QuickTime Kit's capture APIs to record a movie of the audio, and QTMovie (from the same framework) to convert it to a more conventional format for audio files and to play back both the intermediate file and the converted file.
There used to be a QuickTime Kit Programming Guide, but it didn't cover capturing and is now gone from developer.apple.com. You should file a bug against the docs.
This answer will work in a Cocoa (Mac) app. If you meant to ask about the iPhone, you should re-tag your question, as the solution will be completely different for a Cocoa app vs. a Cocoa Touch (iPhone) app.
I used direct sound to create an entire internet phone application a few years ago. Your question is far simpler, you won't have to deal with the circular buffer as critically. Direct sound is pretty main stream and you can find a lot of help with it in forums, and it's free!

Resources