DroidAirPlay icon indicating copy to clipboard operation
DroidAirPlay copied to clipboard

When we try this on Android, its somehow not playing any audio/video.

Open ideavat opened this issue 11 years ago • 3 comments

We are getting delays in streaming audio bytes.

ideavat avatar Feb 05 '14 05:02 ideavat

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.

ideavat avatar Feb 05 '14 05:02 ideavat

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!

Boggartfly avatar Apr 20 '14 06:04 Boggartfly

Was there ever a solution to this? I'm experiencing this on particular devices. Thanks

MatthewCawley avatar Jun 09 '16 09:06 MatthewCawley