apache / apache/cordova-plugin-media
multiple sounds at once glitches out
- Dominant language
- JavaScript
- Stars
- 391
- Forks
- 762
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
when you try to play more than one audio file at a time it starts to behave very weird.
## Problem
I am making a music sequencer with small audio files wich are controlled by a timeline. If I use web audio API it works but with the media plugin it gives all kinds of weird results. It almost always plays 5 files at the same time and need to transition seamless to the next five audio files
### What is expected to happen?
gapless looping, and audio polyphony should function properly.. Or at the very least the same performance as when using the Web Audio API
### Why not just keep using the Web Audio API
because it stops producing audio when the app goes into the background and then comes back.. the audio stops...
## Information
### Command or Code
### Environment, Platform, Device
iOS, latest cordova, also latest capacitor (i tested both with this plugin)
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
Contributor guide
Research direction
No source file, test, or entry point is identified. Start by reproducing simultaneous playback and gapless looping on iOS with the media plugin, then compare it with the Web Audio API behavior; done means reliable polyphony and seamless transitions without the reported glitches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100