How to use the audio stream.
I've tried to write aac data locally, and I've tried to convert it to PCM format and write it locally. But it won't play.
@LuohanCC, I'm also trying to save audio data to playable file. For now, I've compiled fdk-aac lib with JNI bindings to decode aac-eld. This will make sure that decrypting method is correct.
I have completed transcoding in JNI using the fdk-aac library, and directly wrote to the file in JNI, and then played, but the playback failed. I hope you have good news.
Hi serezhka. Have you finished?
@LuohanCC unfortunately, no. C code is here if someone else interested. Currently I'm analyzing apowermirror app from apowersoft. They have managed to make audio work and use shairplay lib, @dsafa22's code, fdk-aac, .. under the hood. Now I can confirm that service discovery entries, /info, RTSP SETUP responses exactly the same as in this java-airplay-lib, nothing is special.
@LuohanCC I've successfully decrypted audio! But still, you need to compile fdk-aac-jni and put libfdk-aac.dll in classpath (windows). Decoded audio will be written to audio.pcm file. ffplay -autoexit -f s16le -ar 44100 -ac 2 audio.pcm see https://youtu.be/BFuYug8MO6s