Streaming AAC audio with Android

后端 未结 5 889
遇见更好的自我
遇见更好的自我 2020-12-23 15:05

As I understand it, Android will only play AAC format audio if it\'s encoded as MPEG-4 or 3GPP.

I\'m able to play AAC audio encoded as M4A when it\'s local to the ap

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 15:21

    This is a wild shot in the dark, but I have seen similar behavior with the flash player where it actually ignores the file name and only relies on the MIME type sent by the server. Any idea what headers are being sent down from example.com? You might want to try wrapping your blah.m4a in a page that can set the headers and then stream the binary data. Give these types a shot and the community would appreciate a confirmation of what works:

    audio/mpeg audio/mp4a audio/mp4a-latm audio/aac audio/x-aac

提交回复
热议问题