Cannot start native decoder aacdecoder

600 views Asked by At

Hello everyone I'm trying to play an aac radio on my app usign this library, the problem is that 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;
            }
        }
    });
0

There are 0 answers