iOS screen mirroring shows overscan borders on selected apps
Asked Answered
P

3

7

Problem: iPhone screen mirroring & a dedicated external view of my app show an inch of a black border on all sides.

But: Some views display perfect without black borders on the full-screen, e.g., the Apple TV menu and the photo app.

Tried already - with no effect:

Setup: iPhone 4S (5.0.1), Apple TV 2nd generation (4.4.4)

Any suggestions what I could try additionally?

Pathos answered 27/2, 2012 at 13:21 Comment(0)
M
10

Ran into the same issue and it took a while to find the 'solution'. Turns out you can set the overscanCompensation to '3' and it will remove the borders.

I think Apple just left out the documentation & enum for UIScreenOverscanCompensationNone, but that down in the code they check for it.

Mullock answered 30/3, 2012 at 15:10 Comment(2)
(y) Worked for me! Thanks! Indeed when I go back to the app chooser, the apple tv snaps down to "safe scan" area again, and snaps big again when my app is again forward. +1.Irresolute
Setting overscanCompensation fixed the issue to an extend, but still the black borders appears when app goes to background and coming back active . My App is playing a a video in MPMovieplayer. I can reproduce the issue usually when I access some other apps (skype,notes etc) while my App in background.Jasisa
R
2

If you also have black borders during AirPlay Mirroring the answer Of MobileVet won't solve that. Try changing the following setting on your Apple TV: Settings > Audio & Video > Adjust For AirPlay Overscan. Set it to Off (default On).

And btw: doesn't 3 just mean UIScreenOverscanCompensationInsetBounds | UIScreenOverscanCompensationApplicationFrame (1 + 2) ?

Restriction answered 13/9, 2013 at 19:25 Comment(0)
R
0

Due to changes in iOS 13 for displaying content on a connected screen, I had to set screen.overscanCompensation = .scale after we find the connected window scene. I noticed this after I got a message in the console, if you try to set it directly in the .UIScreenDidConnect notification.

Repentant answered 23/3, 2022 at 9:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.