-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playing simultaneous tracks with media 3 #1473
Comments
If you are referring to comment like this one, I think the approach should still work as the underlying code hasn't changed in any significant ways since. There is also ongoing work to allow proper audio mixing for playback of multiple tracks, but this may not be available soon. Could you clarify in more detail what exactly isn't working and maybe we can point you in the right direction? |
Maybe the issue lies in the RenderersFactory where I am adding three new AudioRendererWithoutClock instances. However, I actually only need one additional AudioRendererWithoutClock to render the second audio. |
Thanks for highlighting the problem! This is indeed related to the additional renderers. Having more renderers than needed is not usually an issue, but there is a bug in the |
The two arrays need to have the same length and the selection must match in their nullness (unless for TYPE_NONE renderers). Clarify this more clearly in the docs and add new asssertions for it. This avoids that the player is failing in obscure ways much later. Issue: #1473 #cherrypick PiperOrigin-RevId: 646086833
The two arrays need to have the same length and the selection must match in their nullness (unless for TYPE_NONE renderers). Clarify this more clearly in the docs and add new asssertions for it. This avoids that the player is failing in obscure ways much later. Issue: #1473 #cherrypick PiperOrigin-RevId: 646086833 (cherry picked from commit 71ef848)
Also added the fail-early checks in the commits above. Closing the issue. |
Hi, I want to play multiple audio tracks simultaneously. I know that we can use multiple ExoPlayer instances, but I prefer using a single instance and customizing it to play multiple audio files. I found some information on how to achieve this, but it seems to apply to older versions of ExoPlayer. The solution suggested modifying the RenderersFactory set on the player to include multiple audio renderers, and adjusting the TrackSelector to assign each audio track to a different renderer.
However, this approach doesn't seem to work with the new Media3 library. Can someone help me with this question? Thanks!
The text was updated successfully, but these errors were encountered: