John
John

Reputation: 727

How to play asf stream using vitamio?

I am using vitamio library to play online audo stream, but this cannot play asf stream.

    mPlayer=new mPlayer(this);

        try {
            mPlayer.setDataSource(path);
            //mPlayer.prepareAsync(); // prepare async to not block
            // main
                mPlayer.prepare();
            mPlayer.start();
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "mPlayer is onStartCommand error");
            e.printStackTrace();
        } catch (IllegalStateException e) {
            Log.e(TAG, "mPlayer is onStartCommand error");
            e.printStackTrace();
        } catch (IOException e) {
            Log.e(TAG, "mPlayer is onStartCommand error");
            e.printStackTrace();
        }

Plz help!

Upvotes: 1

Views: 455

Answers (1)

Crossle Song
Crossle Song

Reputation: 10174

Vitamio support asf stream. What's wrong with you? error log?

Upvotes: 1

Related Questions