DroidAirPlay
DroidAirPlay copied to clipboard
When we try this on Android, its somehow not playing any audio/video.
We are getting delays in streaming audio bytes.
Main Activity of Android (starting point of Android App) Created an instance of AirPlayServer and AirReceiver. Commented AWT codes in Air Receiver class.
Facing issue in AudioOutputQueue#enqueue(final long frameTime, final byte[] frames) {} Some delay:
if (delay < -packetSeconds) {
/* The whole packet is scheduled to be played in the past */
LOG.warning("Audio data arrived " + -(delay) + " seconds too late, dropping");
return false;
}
else if (delay > QUEUE_LENGHT_MAX_SECONDS) {
/* The packet extends further into the future that our maximum queue size.
* We reject it, since this is probably the result of some timing discrepancies
*/
LOG.warning("Audio data arrived " + delay + " seconds too early, dropping");
return false;
}
This is returning false and hence doesn't enqueue the streams. I am testing on Android Samsung TAB3 and Android Nexus 7. Also tested the jar on Windows Laptpop, its running great in it.
I'm developing something similar. Check out my repo at https://github.com/Boggartfly/OpenAirplay
It's a work in progress though. You could try forking it if you like! Any pull requests I'll happily accept!
Was there ever a solution to this? I'm experiencing this on particular devices. Thanks