I'm uploading a .mp4 file recorded in an cordova-based android app to a server, and I'd like users to be able to play it. Mediainfo indicates it's AMR (adaptive multi-rate, with quicktime codec type "samr"). I've tried a variety of mime types for playback in chrome, but the only one that gets close is audio/mp4: for that mime type, chrome will open a player, but indicates it's permanently muted, and won't play any audio. For mime types audio/amr and audio/amr-nb, chrome downloads the file instead of playing it. Mplayer plays the file ok, so I know it's not corrupt.
If I convert it to mp3 at the server using "avconv -i src.mp4 dest.mp3" and change the mime type to audio/mpeg, then chrome plays it correctly. But I'd prefer not to use a lot of server cycles to do that.
Is there a provision in cordova to change encoding from amr to mp3? If not, is there a way to get chroma (and firefox) to play an amr mp4 file?