无法启动本机解码器aacdecoder

时间:2014-11-24 19:36:04

标签: java android aac

大家好,我试图在我的应用程序this库中播放aac收音机,问题是当我编写基础时它会抛出这个:

11-24 16:33:55.591    4596-4626/ger.radio E/Decoder[OpenCORE]﹕ start() init failed status=30
11-24 16:33:55.592    4596-4626/ger.radio E/Decoder﹕ start() failed err=-1
11-24 16:33:55.593    4596-4636/ger.radio E/BufferReader﹕ Exception when reading:     java.net.SocketException: Socket closed
11-24 16:33:55.595    4596-4626/ger.radio E/AACPlayer﹕ playAsync():
java.lang.RuntimeException: Cannot start native decoder
        at com.spoledge.aacdecoder.Decoder.start(Decoder.java:237)
        at com.spoledge.aacdecoder.AACPlayer.playImpl(AACPlayer.java:424)
        at com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:386)
        at com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:338)
        at com.spoledge.aacdecoder.AACPlayer$1.run(AACPlayer.java:296)
        at java.lang.Thread.run(Thread.java:841)

这是我的代码

Button btn = (Button) findViewById(R.id.button);
    btn.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            if (rep){
                AACPlayer aacPlayer = new AACPlayer();
                aacPlayer.stop();
            }else{
                AACPlayer aacPlayer = new AACPlayer();
                aacPlayer.playAsync( "http://cast.direcnode.com:11320/stream" );
                rep = true;
            }
        }
    });

0 个答案:

没有答案