Airplay device code input disappears too quickly
Trying to screen mirror from my M1 Mac mini to my Apple TV 4K. Every time I try to connect I get asked for an Airplay Device Code which shows up on my Apple TV display.
Now they are NOT in the same room & as fast as I try to activate screen mirroring on my Mac, run through an upstairs hallway, run down a flight of stairs - through a downstairs hallway and into the room with the Apple TV, get the code, run back through the house to get to the Mac to enter the stupid code..... the code request box disappears just as I get to the keyboard - AARRGGHH! Without setting up a remote camera system so that I can see the code in time, or breaking the law during the current covid lockdown & getting someone in the house to shout the code to me, there is NO WAY I can get the code entered in time.
Is there ideally a way to disable the whole stupid code system completely, or a way to increase the time it takes for the dialogue box to 'timeout'.
Thanks for your help!
Mac mini 2018 or later