Can FLV AAC stream be played in Android

元气小坏坏 提交于 2019-12-05 05:51:58

问题


I'm trying to build a radio player and the client is providing a stream which is a FLV container with the audio being AAC

When I read the headers it shows up as audio/aacp.

I have tried all possible ways such as using the

1) Streaming through mediaplayer (Does not work)

2) Use the NPR mode of using a proxy stream (I get a broken pipe exception)

3) Play it in chunks ( Plays but I need the SDCard and the playback is not very great)

4) Use the GPL'd FAAD2 Library but I would have to pay the royalty fee

Can some one help me out on figuring this issue out.

The last option that I have is to have my client change the stream to mp3 container (which I know that it works)

Regards, Hari

来源:https://stackoverflow.com/questions/4623526/can-flv-aac-stream-be-played-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!