Open lovegaoshi opened 1 year ago
this abomination actually meets 3 i dont think it flickers, onward to implement 4
to make this actually useable in APM (which handles queue outside of RNTP) I would rather make crossfade switch manually instaed of automatically. its also partly i dont know how to add listeners in kotlin. manually doing this also means if not handled then RNTP will behave exactly as crossfade is not implemented, just plus the exoplayer2 initialization cost.
The two exoplayers inside kotlinaudio will have the exact same queue. its up to me to specify what should be played.
the first KA commit is still necessary because there can only be one exoplayer "in focus" thus the whole currentPlayer() setup is needed.
this feels like a giant mess but hopefully by keeping both exoplayers ahving the same queue, QueuedAudioPlayer will still function normally.