Android 安卓:韩元';不播放rtp流

Android 安卓:韩元';不播放rtp流,android,media,rtp,jmf,Android,Media,Rtp,Jmf,我想制作一个从服务器播放声音的应用程序。 从internet接收和播放是可行的,但对于我的JMF程序,它不起作用(错误(-38,0)) 以下是我的应用程序代码片段: MediaPlayer mPlayer = new MediaPlayer(); // String url // ="http://programmerguru.com/android-tutorial/wp-content/uploads/2013/04/hosannatelugu.mp3"; Strin

我想制作一个从服务器播放声音的应用程序。 从internet接收和播放是可行的,但对于我的JMF程序,它不起作用(错误(-38,0))

以下是我的应用程序代码片段:

MediaPlayer mPlayer = new MediaPlayer();
    // String url
    // ="http://programmerguru.com/android-tutorial/wp-content/uploads/2013/04/hosannatelugu.mp3";
    String url = "rtp://192.168.32.29:22222/audio/16";
    mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);

    AudioManager audioManager = (AudioManager) this
            .getSystemService(Context.AUDIO_SERVICE);
    audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, volume);

    try {
        mPlayer.setDataSource(url);
    } catch (IllegalArgumentException e) {
        Toast.makeText(getApplicationContext(),
                "You might not set the URI correctly!", Toast.LENGTH_LONG)
                .show();
    } catch (SecurityException e) {
        Toast.makeText(getApplicationContext(),
                "You might not set the URI correctly!", Toast.LENGTH_LONG)
                .show();
    } catch (IllegalStateException e) {
        Toast.makeText(getApplicationContext(),
                "You might not set the URI correctly!", Toast.LENGTH_LONG)
                .show();
    } catch (IOException e) {
        e.printStackTrace();
    }

    try {
        mPlayer.prepare();
    } catch (IllegalStateException e) {
        Toast.makeText(getApplicationContext(),
                "You might not set the URI correctly!", Toast.LENGTH_LONG)
                .show();
    } catch (IOException e) {
        Toast.makeText(getApplicationContext(),
                "You might not set the URI correctly!", Toast.LENGTH_LONG)
                .show();
    }

    mPlayer.start();
当我使用“”时,它起作用,但是“rtp://192.168.32.29:22222/audio/16“向我发送错误(-38,0)

有人能帮我吗? 谢谢