嗨我有我的应用程序aacplayer使用wifi和移动数据工作真棒,但具体在我的国家我有两个提供商,在一个工作良好使用他们的数据服务,但在第二个提供商我得到502坏网关错误在这里我的Logcat提供者#1中的Eclipse,你可以看到502坏网关和提供者#2 ICY 200 OK
PROVIDER #1:
07-12 11:47:57.386: D/AACPlayer(28611): header: key=null, val=HTTP/1.1 502 Bad Gateway
07-12 11:47:57.386: D/AACPlayer(28611): header: key=Content-Language, val=en
07-12 11:47:57.386: D/AACPlayer(28611): header: key=Content-Type, val=text/html;charset=utf-8
07-12 11:47:57.386: D/AACPlayer(28611): header: key=MiepId, val=HTS_responseError502BadGateway_1
07-12 11:47:57.386: D/AACPlayer(28611): header: key=X-Android-Received-Millis, val=1373647677389
07-12 11:47:57.386: D/AACPlayer(28611): header: key=X-Android-Sent-Millis, val=1373647675513
07-12 11:47:57.386: W/MultiPlayer(28611): Content type not audio: text/html;charset=utf-8
07-12 11:47:57.386: W/MultiPlayer(28611): Content type not recognized
07-12 11:47:57.386: E/MultiPlayer(28611): Could not recognize the type of the stream.
07-12 11:47:57.391: E/AACPlayer(28611): playAsync():
07-12 11:47:57.391: E/AACPlayer(28611): java.lang.RuntimeException: Could not recognize the type of the stream.
07-12 11:47:57.391: E/AACPlayer(28611): at com.spoledge.aacdecoder.MultiPlayer.processHeaders(MultiPlayer.java:139)
07-12 11:47:57.391: E/AACPlayer(28611): at com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:280)
07-12 11:47:57.391: E/AACPlayer(28611): at com.spoledge.aacdecoder.AACPlayer$1.run(AACPlayer.java:248)
07-12 11:47:57.391: E/AACPlayer(28611): at java.lang.Thread.run(Thread.java:856)
PROVIDER #2:
07-12 11:56:15.276: D/AACPlayer(15125): header: key=null, val=ICY 200 OK
07-12 11:56:15.276: D/AACPlayer(15125): header: key=content-type, val=audio/aacp
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-br, val=64
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-genre, val=Variado
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-metaint, val=32768
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-name, val=www.streaming507.com
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-notice1, val=<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-notice2, val=SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-pub, val=1
07-12 11:56:15.276: D/AACPlayer(15125): header: key=icy-url, val=www.streaming507.com
07-12 11:56:15.276: D/AACPlayer(15125): header: key=X-Android-Received-Millis, val=1373648175281
07-12 11:56:15.276: D/AACPlayer(15125): header: key=X-Android-Sent-Millis, val=1373648175135
07-12 11:56:15.281: I/MultiPlayer(15125): Setting AAC decoder for content type audio/aacp
07-12 11:56:15.281: I/AACPlayer(15125): The dynamic metainfo is sent every 32768 bytes
07-12 11:56:15.281: D/BufferReader(15125): init(): capacity=5600
07-12 11:56:15.281: D/BufferReader(15125): run()
也许提供商#1阻止某些事情?我的IP可能吗?因为shoutcast服务器在我的IP和我的应用程序上。
非常感谢。