Can't start native decoder aacdecoder

Hello everyone, I am trying to play aac radio on my application usign this library, the problem is when I code the basics, it throws this:

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)

      

And this is my code

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;
            }
        }
    });

      

+3


source to share





All Articles