Rtmp protocal在android中不支持

时间:2017-04-25 06:19:33

标签: java android rtmp

任何人都可以帮助我rtmp网址不起作用,我尝试了很多rtmp网址,但它没有工作,我正在使用vitamio库......

    if (!LibsChecker.checkVitamioLibs(this))
        return;
    setContentView(R.layout.activity_main);
    mVideoView = (VideoView) findViewById(R.id.vitamio_videoView);
    path = "rtmp://sonlifelivefs.fplive.net/sonlifelive-live/";

    mVideoView.setVideoPath(path);
    mVideoView.setMediaController(new MediaController(this));
    mVideoView.requestFocus();

    mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
        @Override
        public void onPrepared(MediaPlayer mediaPlayer) {
            mediaPlayer.setPlaybackSpeed(1.0f);
        }
    });
}

}

0 个答案:

没有答案