hI Greg, Thanks for your answer. Indeed i’m doing a bit more than just playing a file. Perhaps rendering to a file and playing that with avplayerview might be an option, although that seems a bit cumbersome.
fokke > On May 22, 2017, at 20:15 , Greg Chapman <[email protected]> wrote: > > As you have discovered, AirPlay of audio doesn’t support more than stereo. > AirPlay of a media file itself (which is what QTPlayer and iTunes do) does in > a way support this, since the URL of the file to be played is simply sent to > the ATV, which then plays it. If you use AVPlayerView (in AVKit), like > QTPlayer does, you will get this feature as well. But I fear you aren’t just > playing files. > > Greg > >> On May 11, 2017, at 4:45 AM, Fokke de Jong <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hi, >> >> We are developing an app to stream custom 5.1 (or higher order multichannel) >> audio from iOS via AirPlay to an AppleTV. Streaming 5.1 content using the >> built-in movie player works fine, but using AVAudioSession we never get the >> option to select the multi-channel output ports; the device only advertises: >> >> <AVAudioSessionPortDescription: 0x17401aa20, type = AirPlay; name = Apple >> TV; UID = 58:55:CA:3E:DC:CD-airplay; selectedDataSource = (null)> >> <AVAudioSessionChannelDescription: 0x17001d8d0, name = Apple TV 1; >> label = 0 (0x0); number = 1; port UID = 58:55:CA:3E:DC:CD-airplay> >> <AVAudioSessionChannelDescription: 0x17001d8f0, name = Apple TV 2; >> label = 0 (0x0); number = 2; port UID = 58:55:CA:3E:DC:CD-airplay> >> >> [AVAudioSession sharedInstance].maximumOutputNumberOfChannels return 2, even >> when we instantiate an AURemoteIO object with 6 output channels. >> >> Is there a trick to get the AppleTV to show its 6 (or 8) channels via >> AirPlay? >> >> Thanks. >> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Coreaudio-api mailing list ([email protected] >> <mailto:[email protected]>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/coreaudio-api/gregc%40apple.com >> <https://lists.apple.com/mailman/options/coreaudio-api/gregc%40apple.com> >> >> This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
