-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Merging audio and video together using MergingMediaSource #9876
Comments
EventLogger: 2022-01-19 19:58:46.292 21074-21074/com.example.karaoke D/EventLogger: surfaceSize [eventTime=0.05, mediaPos=0.00, window=0, 2560, 1438] |
I overrid
// return audioSink; KaraokeAudioSink
The log show that Audio data is send to AudioSlink |
AudioSlink.pcm.zip I save audio pcm at handbuffer function to AudioSlink.pcm |
By default, ExoPlayer only selects one track for playback. This means the other two tracks are not just silent, they are not processed at all. If you want to let them play together, you need to make two changes:
Note that the approach above doesn't perfectly synchronize the audio tracks, which is considerably more complicated and tracked by #4261. |
Unfortunately we can't answer all questions. Unclear questions or questions with
insufficient information may not get attention.
Before filing a question:
https://github.com/google/ExoPlayer/issues?q=is%3Aissue
(https://exoplayer.dev/doc/reference/)
When filing a question:
Describe your question in detail.
I have 3 media url . Video Url1 Audio Url3 Audio Url3. And Video Url1 also 1 audio track.
I want play Video and audio Url at the same time. like one media container have 3 audio track.
so I create MediaSource like this:
And StyledPlayerView corrent show exoplayer have 3 audio track。 But only the audio Track of VideoUrl can play. Another alone Audio Url play slient.
The text was updated successfully, but these errors were encountered: