-
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
Improve gapless between two tracks #3206
Comments
Depending on exactly what type of content you're trying to play, the streams themselves may need to contain gapless metadata for them to be played without gaps. We do not manually detect and clip silence from the start and end of each file; if it's present then it needs to be properly specified by in the metadata. I'm pretty sure use of |
Indeed |
You don't have to add the entire playlist upfront. That's why it's dynamic - allowing you to add and remove things later on. However, it sounds as if you add the next media source after the first one has already fully played to its end? To be able to pre-buffer the next item without noticeable gaps, you should ensure that you add it at least some time before playback reaches the end of the previous item. |
ExoPlayer supports gapless playback of MP3 files that contain gapless metadata in Xing and ID3 headers, and MP4 files that have udta boxes or edit lists with gapless metadata. If you provide the media you're trying to play, we can check that the required metadata is present. As Toni points out, it's also necessary to make sure the player has the next MediaSource sufficiently far in advance of playback reaching the end of the current one. It's generally fine to populate the |
Hello everyone,
I use Exoplayer-dev-v2.5.0
Following this thread: #1706, I was hoping to obtain gapless audio playing with the new
DynamicConcatenatingMediaSource
but there is still a small gap between two tracks.I'm looking at the ExoPlayer code to find a way to avoid the gap between two different tracks. The best will be to avoid discontinuity between two tracks.
I don't know if it's possible, but if there is a gap, my player stream is probably empty at a time when I'm playing from the current track to the next one. I'm looking to find where and why this gap exists and if there is a way to fill this gap with the beginning of my next track.
I would be grateful If someone has a trail to help me on this.
The text was updated successfully, but these errors were encountered: