Slavik
Slavik

Reputation: 1083

How to choose the display mode of UIScreen to cover the whole tv screen?

I am writing a player to output video to TV from iOS device connected with HDMI.

I found the preferred screen mode and any other screen modes of the UIScreen might not be able to cover the tv screen. It behaves different with various models of TV.

However, the iTunes video player is able to cover the whole tv screen at any time.

I wonder how does it do that?

Is there any secret private api?

Upvotes: 1

Views: 801

Answers (2)

RhodanV5500
RhodanV5500

Reputation: 1107

Try this at your own risk ;)

// Undocumented, may cause bugs!
[screen setOverscanCompensation:3];

Upvotes: 1

John Goodstadt
John Goodstadt

Reputation: 698

I can suggest you try the sample source code TVOut on GITHub - https://github.com/JohnGoodstadt/TVOut. I have found that it covers all the screen of the monitor types I have tried. It also allows you to alter the 'bounds' of the TV screen edge (so you can move out from the standard edge).

It uses the standard IOS api.

Upvotes: 1

Related Questions