Skip to content
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

ExoPlayer can't play particular m4a files #5320

Closed
davidaik opened this issue Dec 28, 2018 · 4 comments
Closed

ExoPlayer can't play particular m4a files #5320

davidaik opened this issue Dec 28, 2018 · 4 comments
Assignees
Labels

Comments

@davidaik
Copy link

I am building an offline music player app using ExoPlayer and things are working fine. It can play all m4a files except two particular files that I have.

https://www.dropbox.com/s/mxxwarmf43j5pjc/Unlike%20Pluto%20-%20Someone%20New.m4a?dl=0
https://www.dropbox.com/s/zy6rbllusz1j0r2/Vanic%20-%20Hypnotic.m4a?dl=0

These files can be played on Google Play Music and other music player apps. It also plays on an older version of my app that implements MediaPlayer.

When I try to prepare these files in my app using SimpleExoPlayer, onPlayerStateChanged() is immediately called and the playback state is Player.STATE_ENDED. Sometimes, the state is Player.STATE_READY, but ExoPlayer.getDuration() gives me 0 and ExoPlayer.getCurrentPosition() updates as if the file is normally playing but there is no sound.

What's special about these files is that when I was playing these files in another music player app which had an automatic artwork downloader, the app downloaded and set artwork to these files. I think that the change in metadata done at that time is what makes these files unplayable in ExoPlayer.

I suspect that ExoPlayer is not able to handle a specific "configuration" of metadata that is found in these files. I hope that it is investigated to make ExoPlayer more reliable.

@davidaik davidaik changed the title Why can't ExoPlayer play these m4a files? ExoPlayer play particular m4a files Dec 28, 2018
@davidaik davidaik changed the title ExoPlayer play particular m4a files ExoPlayer can't play particular m4a files Dec 28, 2018
@AquilesCanta
Copy link
Contributor

We are failing to sniff the file as a fragmented mp4 file. The reason is that the meta box is big, and makes us exceed the sniffing size before we find evidence that the file is fragmented. I will update this issue once I have an update on this.

@AquilesCanta AquilesCanta self-assigned this Dec 28, 2018
@davidaik
Copy link
Author

Thank you. I was just considering moving back to MediaPlayer, but I'll be sticking around and hopefully this bug gets fixed soon.

ojw28 pushed a commit that referenced this issue Jan 8, 2019
@ojw28
Copy link
Contributor

ojw28 commented Jan 10, 2019

Fixed in dev-v2

@ojw28 ojw28 closed this as completed Jan 10, 2019
ojw28 pushed a commit that referenced this issue Jan 15, 2019
@davidaik
Copy link
Author

Thanks, it works.

@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants