google / google/ExoPlayer

Simplify/allow selection of multiple renderers of the same type in DefaultTrackSelector.

Open
#6,589 17 comments 0 reactions 1 assignee Claimed by @tonihei View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I want play multi sound in same time(simultaneously) in exoplayer but it only play mediaSource1 and mediaSource2. I want play all mediaSources at the same time(simultaneously)

My code with exoplayer is:

>
Uri uri1 = Uri.parse(videopath);
Uri uri2 = Uri.parse(audio_a.getAbsolutePath());
Uri uri3 = Uri.parse(audio_b.getAbsolutePath());
Uri uri4 = Uri.parse(audio_c.getAbsolutePath());

MediaSource mediaSource1 = buildMediaSource(uri1);
MediaSource mediaSource2 = buildMediaSource(uri2);
MediaSource mediaSource3 = buildMediaSource(uri3);
MediaSource mediaSource4 = buildMediaSource(uri4);

MergingMediaSource mediaSource = new MergingMediaSource(mediaSource1, mediaSource2, mediaSource3, mediaSource4);

exoPlayer.prepare(mediaSource, false, false);

>

please help me
thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.