HDR video rendering bugs

I use AVSimpleBufferDisplayLayer(iOS14+) / MetalLayer(iOS16) to show HDR videos in my app.The video content is displayed well, and it is easy to find the brightness is higher than SDR video.

But I found some bugs:

1.When playing the HDR video especially the content is white, the UI is darker than video content, that makes users can't see the UI clearly. I haven't found a way to increase the UI's brightness to suit the HDR video content as now SDR video content do.

2.When playing the HDR video, screenrecording makes the HDR content darker, I think it is an abnormal thing.

HDR video rendering bugs
 
 
Q