I currently am using AVQueuePlayer to play back a series of encrypted mp3 files. I do this by using a cusom AVAssetReasourceLoader and a custom url protocol. There are 2 reasons for this:
1) I am unable to store on device unencrypted files.
2) I support streaming content directly from our webserver.
The custom reasouce loader determines where to get data when AVPlayer sends a request. If the file is not saved to disk it will redirect to a web URL to be streamed. If the file is on disk however the reaource loader will decrypt the required bytes and ship them back to the player to be played. This dynamic is working and is working extremely well.
However Airplay is proving to be a problem. When testing AirPlay to an Apple TV everything will work if the reaource loader is redircting to the webserver for streaming playback. What does not work is playing from a file on the device. The reasource loader seems to behave as normal by decrypting the bytes and handing them off but the Apple TV instead just displays an error.
After 3 days of researching the only information I can find on this is a post on stack overflow :
In which the person states "I have now received a response from Apple (via a TSI) to this question. Video AirPlay is not supported when using a custom resource loader."
I also just found another post on your very forums of someone asking a simlar qustion to mine and referenceing the same small post:
https://forums.developer.apple.com/message/93507#93507
Both of these posts are talking about video however I am attempting to just play audio through AirPlay. Is this a possibilty with the current code setup I have described? If not what can I do to accomplish the same effect that is supported by Apple.