question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Audio playing multiple streams over itself

See original GitHub issue

I’ve built a small playlist-like setting similar to the example.

Here’s my click method on a list of tracks

  const handleClick = track => {
    setCurrent(track);
    load({ src: track.url, autoplay: !playing });
  };

Clicking around on the tracks mostly works - but then one will get “stuck” and you have to refresh to get it to stop.

I’m wrapping the entire thing in a single AudioPlayerProvider so not dealing with multiple contexts or anything.

I tried adding a stop() in there before load() but same problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
E-Kuerschnercommented, Mar 16, 2020

Alright thanks that helps a lot! I’ll try to get to this some time this week. If you’re interested feel free to mess with the source code. I’m definitely open to contributors and pull requests!

0reactions
almightybobcommented, Jun 13, 2021

I’m having this Issue with react-native-web and useAudioPlayer v. 1.2.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can video have multiple streams (like it has 2 audio streams)
Yes. MPEG-4 Part 14 (the MP4 container format) supports any number of objects (e.g. video, audio and subtitle streams) and isn't limited to ......
Read more >
Web Audio With Multiple Streams - javascript - Stack Overflow
This brings me to using the Web Audio API to try and manipulate the streams manually. For testing my current HTML is just...
Read more >
Multiple Primary Streams which allow audio overlap
You can use something like Adobe Premiere or even Panopto itself (using another session with just audio as the primary and the singer...
Read more >
How to Play Sound from 2 Apps at Once on Your Samsung ...
It's called SoundAssistant, and among other things, it makes multi-stream audio possible. So tap the following link from your Galaxy device, ...
Read more >
Multistream is here! | Meetecho Blog
and the several changes on the multistream branch. ... data channel m-line via SDP anyway (you'd use multiple streams/labels over the same ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found