Having a hard time using audioplayers to make a custom audio that actually transitions between pages seamlessly without skipping audio and losing position when you return back.
I think i just need help with architecture and design. my audio player is a singleton now, and I'm not sure thats the right approach.
here are my audio player requirements:
Audio Player must play and pause audio.
Audio player must have seek bar.
Audio player must have playback speed option.
Audio Player must be able to retain position when coming back to that specific track, which is loaded by the individual page.
Audio player must not play two tracks at one time.
Audio player must play from current position no matter what, and not start from beginning unless initialized from the first time.
Audio player must conditionally float on non-audio track pages if playback is initiated, but still have flexibility to not be present on certain specific pages.
Audio player must continue playing and integrate with OS playback controls when app backgrounds
Audio player must have seek buttons to go to the next or previous track
Audio player must have seek 15 seconds buttons either forward or reverse