AirPlay 2

RSS for tag

AirPlay 2 allows users to wirelessly send content from any Apple device to a device enabled with AirPlay.

Posts under AirPlay 2 tag

71 Posts

Post

Replies

Boosts

Views

Activity

airplay audio connection
Hi I just make it working that airplay speaker service visible by my Iphone by "dns-sd" command. after that, I clicked on my iphone to connect the service however I cannot connect to it. what other setting should be made to connect with Iphone. any idea?
0
0
629
Oct ’21
Unable to AirPlay to Sonos speaker from Apple TV and HomePod in Home Cinema mode
I've raised a bug with Apple already, but I was wondering if anyone else is experiencing this weird issue: When playing music on the Apple TV and associated HomePod(s) in Home Cinema mode with ARC enabled, I am unable to add a Sonos speaker as the AirPlay 2 target. As a workaround I can first add a second Apple device (be it an Apple TV or solo HomePod not running Home Cinema audio), then add the Sonos speaker into the group, and the audio plays. Interestingly enough, removing the second Apple device from the group does not stop the Sonos speaker from playing from the original Apple TV and HomePod combo. I've been able to replicate this in tvOS 14.5.1 and 14.6. I'm assuming that it is likely an issue with the Home Cinema mode with ARC, which is in Beta after all.
1
0
1.7k
Oct ’21
Bonjor Airplay service registration
Hi, I'm working on Bonjour to enable Airplay client service and set like the following dns-sd -R myAirplayService _airplay._tcp local 7000 after that I got the following log DATE: ---Thu 14 Oct 2021--- 16:36:50.939 ...STARTING... 16:36:51.159 Got a reply for service sooairplay._airplay._tcp.local.: Name now registered and active it seems working but I can't find my service by my Iphone. what's the correct way to set Airplay client by "dns-sd" command?
0
0
595
Oct ’21
Airplay 2 implementation on Linux
Hi all, I am looking for the information about the Airplay2 (client) implementation on linux but there aren't much info about it. As far as I searched on the internet, it seems possible to implement it on the linux by Swift which is cross platform supported solution, but I wonder what the specific procedure for developing Airplay 2 on the linux . Is Apple providing Airplay2 source code in Swift form? Is there any detail guide about this? if there's is any person who have experience about it, please share the information. Thanks.
0
0
1.4k
Oct ’21
Force AirPlay to connect over Infra instead of AWDL?
I currently have a situation where we have 400+ Apple TVs deployed in classrooms to act as AirPlay receivers. I'm having an issue with MacBooks somewhat randomly dropping connection from WiFi while connected to the Apple TVs. It appears the MacBooks and Apple TVs connect to each other over AWDL before problems happen, while devices connected over Infra have no issue per console logs. Is there any way to force AirPlay to run over Infra rather than AWDL without completely disabling awdl0?
0
0
755
Sep ’21
AVAudioEngine when connected to Airplay
Background We're writing a small recording app - think Voice Memos for the sake of argument. In our app, users should always record with the built-in iPhone microphone. Our Problem Our setup works fine when using just the speakers or in combination with Bluetooth headsets. However, it doesn't work well with Airplay. One of two things can happen: The app records just silence The app crashes when trying to connect the inputNode to the recorderNode (see code below), complaining that IsFormatSampleRateAndChannelCountValid == false Our testing environment is an iPhone Xs, connected to an Airplay 2 compatible Sonos amp. Code We use the following code to set up the AVAudioSession (simplified, without error handling): let session = AVAudioSession.sharedInstance() try session.setCategory(.playAndRecord, options: [.defaultToSpeaker, .allowBluetoothA2DP, .allowAirPlay]) try AVAudioSession.sharedInstance().setActive(true) Every time we record, we configure the audio session to use the built-in mic, and then create a fresh AVAudioEngine. let session = AVAudioSession.sharedInstance() let builtInMicInput = session.availableInputs!.first(where: { $0.portType == .builtInMic }) try session.setPreferredInput(builtInMicInput) let sampleRate: Double = 44100 let numChannels: AVAudioChannelCount = isStereoEnabled ? 2 : 1 let recordingOutputFormat = AVAudioFormat(commonFormat: .pcmFormatFloat32, sampleRate: sampleRate, channels: numChannels, interleaved: false)! let engine = AVAudioEngine() let recorderNode = AVAudioMixerNode() // This sets the input volume of those nodes in their destination node (mainMixerNode) to 0. // The raw outputVolume of these nodes remains 1, so when you tap them you still get the samples. // If you set outputVolume = 0 instead, the taps would only receives zeros. recorderNode.volume = 0 engine.attach(recorderNode) engine.connect(engine.mainMixerNode,  to: engine.outputNode,   format: engine.outputNode.inputFormat(forBus: 0)) engine.connect(recorderNode,      to: engine.mainMixerNode,  format: recordingOutputFormat) engine.connect(engine.inputNode,    to: recorderNode,      format: engine.inputNode.inputFormat(forBus: 0)) // and later try engine.start() We install a tap on the recorderNode to save the recorded audio into a file. The tap works fine and is out of scope for this question, and thus not included here. Questions How do we route/configure the audio engine correctly to avoid this problem? Do you have any advice on how to debug such issues in the future? Which variables/states should we inspect? Thank you so much in advance!
1
0
1.8k
Aug ’21
airplay in Monterey
Using beta but when I open the apple music app click the airplay icon switch to home pod from Mac Mini M1 speakers the home pod lights up but switches back to the M1 speakers. Shut the computer down, bring it back up and do the same process and now it connects to the home pod.
0
0
558
Aug ’21
How does data consumption use for Airplay downloaded iTunes movies from iPad to Apple TV
I have downloaded movies from iTunes to my iPad. I purchased them and downloaded them directly. When I plug the iPad into my TV via HDMI there is no data consumption at all over the WAN source. When I try to Airplay to an Apple TV 4K latest version, the same movie attempts to stream instead of playing from the local file. I am trying to understand why the Apple TV forces the downloaded movie to stream instead of playing from the local copy on the iPad.
1
0
783
Jul ’21
Handoff and airplay is not working after updating BigSur 11.0.1.
My handoff/airplay devices are iPad Pro 2020(iPadOS 14.2),iPhone X(iOS 14.2),MacBook Pro2019 (Big Sur11.0.1) and apple tv. iPad Pro and iPhone X can detect handoff from each other;But they both can't detect handoff from MacBook Pro(Big Sur11.0.1). Same case in airplay. But it can detect apple tv. I've tried all troubleshooting in all devices.
56
0
15k
Jul ’21
HomePod connecting/volume Problems to tvOS 15.1
I have a problem connecting my homepods permanently to tvos 15.1 or the homepod is always muted. There is no response from the remote. What I dit: Split the HomePod pairs, reconnect to a pair. Reset to default settings (HomePod and Apple TV 4K). Nothing change. I can connect via AirPlay as normal. Have someone a clue what I can do?
Replies
2
Boosts
0
Views
986
Activity
Oct ’21
airplay audio connection
Hi I just make it working that airplay speaker service visible by my Iphone by "dns-sd" command. after that, I clicked on my iphone to connect the service however I cannot connect to it. what other setting should be made to connect with Iphone. any idea?
Replies
0
Boosts
0
Views
629
Activity
Oct ’21
tvOS 15 Beta 3 issues with Airplay speakers
After updating to tvOS15 Beta 3, Apple TV is not connecting to Airplay speakers anymore. Though, connecting HomePod minis are ok. Anyone else noticed this? Thanks!
Replies
3
Boosts
0
Views
2k
Activity
Oct ’21
Unable to AirPlay to Sonos speaker from Apple TV and HomePod in Home Cinema mode
I've raised a bug with Apple already, but I was wondering if anyone else is experiencing this weird issue: When playing music on the Apple TV and associated HomePod(s) in Home Cinema mode with ARC enabled, I am unable to add a Sonos speaker as the AirPlay 2 target. As a workaround I can first add a second Apple device (be it an Apple TV or solo HomePod not running Home Cinema audio), then add the Sonos speaker into the group, and the audio plays. Interestingly enough, removing the second Apple device from the group does not stop the Sonos speaker from playing from the original Apple TV and HomePod combo. I've been able to replicate this in tvOS 14.5.1 and 14.6. I'm assuming that it is likely an issue with the Home Cinema mode with ARC, which is in Beta after all.
Replies
1
Boosts
0
Views
1.7k
Activity
Oct ’21
Bonjor Airplay service registration
Hi, I'm working on Bonjour to enable Airplay client service and set like the following dns-sd -R myAirplayService _airplay._tcp local 7000 after that I got the following log DATE: ---Thu 14 Oct 2021--- 16:36:50.939 ...STARTING... 16:36:51.159 Got a reply for service sooairplay._airplay._tcp.local.: Name now registered and active it seems working but I can't find my service by my Iphone. what's the correct way to set Airplay client by "dns-sd" command?
Replies
0
Boosts
0
Views
595
Activity
Oct ’21
Airplay 2 implementation on Linux
Hi all, I am looking for the information about the Airplay2 (client) implementation on linux but there aren't much info about it. As far as I searched on the internet, it seems possible to implement it on the linux by Swift which is cross platform supported solution, but I wonder what the specific procedure for developing Airplay 2 on the linux . Is Apple providing Airplay2 source code in Swift form? Is there any detail guide about this? if there's is any person who have experience about it, please share the information. Thanks.
Replies
0
Boosts
0
Views
1.4k
Activity
Oct ’21
Force AirPlay to connect over Infra instead of AWDL?
I currently have a situation where we have 400+ Apple TVs deployed in classrooms to act as AirPlay receivers. I'm having an issue with MacBooks somewhat randomly dropping connection from WiFi while connected to the Apple TVs. It appears the MacBooks and Apple TVs connect to each other over AWDL before problems happen, while devices connected over Infra have no issue per console logs. Is there any way to force AirPlay to run over Infra rather than AWDL without completely disabling awdl0?
Replies
0
Boosts
0
Views
755
Activity
Sep ’21
AVAudioEngine when connected to Airplay
Background We're writing a small recording app - think Voice Memos for the sake of argument. In our app, users should always record with the built-in iPhone microphone. Our Problem Our setup works fine when using just the speakers or in combination with Bluetooth headsets. However, it doesn't work well with Airplay. One of two things can happen: The app records just silence The app crashes when trying to connect the inputNode to the recorderNode (see code below), complaining that IsFormatSampleRateAndChannelCountValid == false Our testing environment is an iPhone Xs, connected to an Airplay 2 compatible Sonos amp. Code We use the following code to set up the AVAudioSession (simplified, without error handling): let session = AVAudioSession.sharedInstance() try session.setCategory(.playAndRecord, options: [.defaultToSpeaker, .allowBluetoothA2DP, .allowAirPlay]) try AVAudioSession.sharedInstance().setActive(true) Every time we record, we configure the audio session to use the built-in mic, and then create a fresh AVAudioEngine. let session = AVAudioSession.sharedInstance() let builtInMicInput = session.availableInputs!.first(where: { $0.portType == .builtInMic }) try session.setPreferredInput(builtInMicInput) let sampleRate: Double = 44100 let numChannels: AVAudioChannelCount = isStereoEnabled ? 2 : 1 let recordingOutputFormat = AVAudioFormat(commonFormat: .pcmFormatFloat32, sampleRate: sampleRate, channels: numChannels, interleaved: false)! let engine = AVAudioEngine() let recorderNode = AVAudioMixerNode() // This sets the input volume of those nodes in their destination node (mainMixerNode) to 0. // The raw outputVolume of these nodes remains 1, so when you tap them you still get the samples. // If you set outputVolume = 0 instead, the taps would only receives zeros. recorderNode.volume = 0 engine.attach(recorderNode) engine.connect(engine.mainMixerNode,  to: engine.outputNode,   format: engine.outputNode.inputFormat(forBus: 0)) engine.connect(recorderNode,      to: engine.mainMixerNode,  format: recordingOutputFormat) engine.connect(engine.inputNode,    to: recorderNode,      format: engine.inputNode.inputFormat(forBus: 0)) // and later try engine.start() We install a tap on the recorderNode to save the recorded audio into a file. The tap works fine and is out of scope for this question, and thus not included here. Questions How do we route/configure the audio engine correctly to avoid this problem? Do you have any advice on how to debug such issues in the future? Which variables/states should we inspect? Thank you so much in advance!
Replies
1
Boosts
0
Views
1.8k
Activity
Aug ’21
airplay in Monterey
Using beta but when I open the apple music app click the airplay icon switch to home pod from Mac Mini M1 speakers the home pod lights up but switches back to the M1 speakers. Shut the computer down, bring it back up and do the same process and now it connects to the home pod.
Replies
0
Boosts
0
Views
558
Activity
Aug ’21
How does data consumption use for Airplay downloaded iTunes movies from iPad to Apple TV
I have downloaded movies from iTunes to my iPad. I purchased them and downloaded them directly. When I plug the iPad into my TV via HDMI there is no data consumption at all over the WAN source. When I try to Airplay to an Apple TV 4K latest version, the same movie attempts to stream instead of playing from the local file. I am trying to understand why the Apple TV forces the downloaded movie to stream instead of playing from the local copy on the iPad.
Replies
1
Boosts
0
Views
783
Activity
Jul ’21
Handoff and airplay is not working after updating BigSur 11.0.1.
My handoff/airplay devices are iPad Pro 2020(iPadOS 14.2),iPhone X(iOS 14.2),MacBook Pro2019 (Big Sur11.0.1) and apple tv. iPad Pro and iPhone X can detect handoff from each other;But they both can't detect handoff from MacBook Pro(Big Sur11.0.1). Same case in airplay. But it can detect apple tv. I've tried all troubleshooting in all devices.
Replies
56
Boosts
0
Views
15k
Activity
Jul ’21