HDR available Modes

Hi All,

How to use availableHDRModes to detect playback cabilities on iPhone?

I tried to read this property, it always return 0 value on iPhone X, iPhone X should have HDR support.

Replies

You want to look at AVPlayer.HDRMode:

https://developer.apple.com/documentation/avfoundation/avplayer.hdrmode


It is an OptionSet so it's raw value needs to be interpreted.


Try calling this method when connected to an external HDR display.