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

Can't play m4a on Android #156

Closed
rafante opened this issue Apr 29, 2019 · 4 comments
Closed

Can't play m4a on Android #156

rafante opened this issue Apr 29, 2019 · 4 comments
Labels
platform-android Affects the android platform

Comments

@rafante
Copy link

rafante commented Apr 29, 2019

I have this app that has a chat screen and I'm adding audios like WhatsApp and IOS generates m4a audio and android generates mp4 audios. IOS can play both, but android will only play mp4 it doesn't play m4a audios. The log generated is down below (that log is generated when I call play(). An observation: The same play() method works like a charm in IOS for both m4a and mp4 (generated in the android version).

Thanks in advance.

[ +19 ms] E/MediaPlayerNative( 6119): error (1, -1007)
[ ] E/MediaPlayerNative( 6119): Attempt to call getDuration in wrong state: mPlayer=0x8c1ac1a0, mCurrentState=0
[ ] E/MediaPlayerNative( 6119): error (-38, 0)
[ ] E/MediaPlayer( 6119): Error (1,-1007)
[ ] E/MediaPlayerNative( 6119): stop called in state 0, mPlayer(0x8c1ac1a0)
[ ] E/MediaPlayerNative( 6119): error (-38, 0)
[ ] V/MediaPlayer( 6119): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
[ ] V/MediaPlayer( 6119): cleanDrmObj: mDrmObj=null mDrmSessionId=null
[ ] V/MediaPlayer( 6119): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
[ ] V/MediaPlayer( 6119): cleanDrmObj: mDrmObj=null mDrmSessionId=null

@erickzanardo
Copy link
Member

Is this m4a a local file? Have you tried playing it on other players, like VLC for example?

@erickzanardo
Copy link
Member

Closing due inactivity.

@xSuperMu
Copy link

I'm facing same issue @erickzanardo
with m4a & wav files

@Gustl22
Copy link
Collaborator

Gustl22 commented Mar 15, 2024

Plz open a new issue with all relevant information @xSuperMu. Also note this PR: #1691

@Gustl22 Gustl22 added the platform-android Affects the android platform label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-android Affects the android platform
Projects
None yet
Development

No branches or pull requests

4 participants