Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

AirPlay code

I followed the instructions for mirroring from my iMac to my AppleTV, but had no success. In the first place, my iMac asked me for a 4-digit AirPlay code. When I went to my AppleTV to change the code to something of my choice, I found it wanted a 6-digit AirPlay code. So I disabled the code. That succeeded in that I was no longer asked for the code when on my iMac, but even after I selected "Screen Mirroring" in the control panel, mirroring did not commence. There is still something I'm missing. Not used to Apple interfaces being non-intuitive.

Posted on Jul 2, 2023 3:38 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 2, 2023 8:14 AM

What is your model Apple TV? [1] [2] What is its version system software (tvOS)?

What is the version macOS on your iMac? [3]


  • AirPlay would ask for a 4-digit pairing code when no AirPlay password is set. The code would be shown on the TV screen (interrupting anything else that was playing at that time).
  • AirPlay would ask for a 6-character (or more*) password when a AirPlay password is set. This code can be set in Settings on Apple TV (as the receiving device). This wouldn’t show a code on screen, and viewers wouldn’t be interrupted by possible failed attempts from unauthorized people. *Toggling off-on would auto generate a new password, but a custom password can be set, if you wish.
  • AirPlay has an off-on switch on the receiving device. Verify that it is set to ‘On’.
  • AirPlay has access rules, of who is allowed to stream. I would recommend Anyone on the Same Network in most situations.


Use AirPlay to stream audio and video on Apple TV - Apple Support


Some content may not work for AirPlay, as set by the content provider or app.

- DVD-Video as played in the Apple DVD Player app prohibits AirPlay screen mirroring and capturing content.

- Web video may have DRM properties that prohibits AirPlay (e.g. Netflix).

- Web video may have video properties that are not compatible with basic AirPlay. Your Mac has (slightly) different playback abilities than the Apple TV box. It could work differently for screen mirroring, though, which can be seen as capturing and re-encoding.

- Content may have minimum system requirements for the receiving device (e.g. AirPlay 2 compatibility). That could exclude legacy models Apple TV for some content.


So it depends somewhat on what you are trying to stream. Can you tell a bit about that?

4 replies
Question marked as Top-ranking reply

Jul 2, 2023 8:14 AM in response to sidney147

What is your model Apple TV? [1] [2] What is its version system software (tvOS)?

What is the version macOS on your iMac? [3]


  • AirPlay would ask for a 4-digit pairing code when no AirPlay password is set. The code would be shown on the TV screen (interrupting anything else that was playing at that time).
  • AirPlay would ask for a 6-character (or more*) password when a AirPlay password is set. This code can be set in Settings on Apple TV (as the receiving device). This wouldn’t show a code on screen, and viewers wouldn’t be interrupted by possible failed attempts from unauthorized people. *Toggling off-on would auto generate a new password, but a custom password can be set, if you wish.
  • AirPlay has an off-on switch on the receiving device. Verify that it is set to ‘On’.
  • AirPlay has access rules, of who is allowed to stream. I would recommend Anyone on the Same Network in most situations.


Use AirPlay to stream audio and video on Apple TV - Apple Support


Some content may not work for AirPlay, as set by the content provider or app.

- DVD-Video as played in the Apple DVD Player app prohibits AirPlay screen mirroring and capturing content.

- Web video may have DRM properties that prohibits AirPlay (e.g. Netflix).

- Web video may have video properties that are not compatible with basic AirPlay. Your Mac has (slightly) different playback abilities than the Apple TV box. It could work differently for screen mirroring, though, which can be seen as capturing and re-encoding.

- Content may have minimum system requirements for the receiving device (e.g. AirPlay 2 compatibility). That could exclude legacy models Apple TV for some content.


So it depends somewhat on what you are trying to stream. Can you tell a bit about that?

Jul 2, 2023 1:51 PM in response to sidney147

The AirPlay button in the controller bar of Safari web video is functional for AirPlay. If you downloaded and played back through QuickTime Player, then that would also have an AirPlay button in the controller bar.

Vimeo does have an app for the Apple TV box, so you could play it without going through the Mac.


If the sending device and the receiving device are in separate rooms, then that could make it very inconvenient for controlling the AirPlay stream. Using the Apple TV remote in any way (except audio controls) would abort the AirPlay stream.


Instead of AirPlay, consider Home Sharing for downloaded files. Instead of pushing content to other devices, pull content from a networked computer while using Apple TV. Use Home Sharing to share media from a computer to other devices - Apple Support.

Apple Home Sharing does depend on comp,atible media files (.mp4, .m4v, .mov, m4a, mp3, .jpg, tif, …) in the libraries of the TV app, Music app. For other file formats, you may need to convert, or use a different local sharing framework (VLC, Plex, Infuse, …).

Jul 2, 2023 12:47 PM in response to Urquhart1244

You seem to be the only member of the community replying to questions these days. Thank you for that.

AppleTV Gen. 4.1

tvOS 16.5 (20L563) set to automatic updates

iMac OS 12.6.3

I noticed that the password reset the second time I accessed the AirPlay sub-menu.

AirPlay is "ON" and I've set it to "Anyone on the same network."


So when I'm asked for a 4-digit pairing code after I click on Screen Mirroring, that code will be displayed on

my TV screen? The TV is a couple of rooms away and I didn't think to look there at the time. If I come back

and enter the code on my iMac, will my screen—as is—be mirrored on my TV?

Can I start and stop videos from the TV or do I need to start a video playing on my iMac and then run to the

TV? The video I was hoping to mirror was a Vimeo I had pulled up in a Safari window. Interestingly enough,

the Vimeo vid has an AirPlay icon among the various controls at the bottom of the window... is that functional?


In other words, how the heck do I start the video playing to my TV, and can I control it using the AppleTV

remote? That is, can I start/stop/pause the vid while watching on the TV, or do I have to go back to my iMac

to do that?


Again, thank you for replying.


AirPlay code

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.