我已在我的应用程序中集成vlclib
以以下方式播放视频流
try {
mMediaPlayer = VLCInstance.getLibVlcInstance();
} catch (LibVlcException e) {
e.printStackTrace();
}
mSurfaceHolder = mSurfaceView.getHolder();
mSurfaceHolder.setFormat(PixelFormat.RGBX_8888);
mSurfaceHolder.addCallback(this);
mMediaPlayer.eventVideoPlayerActivityCreated(true);
EventHandler em = EventHandler.getInstance();
em.addHandler(mVlcHandler);
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
mSurfaceView.setKeepScreenOn(true);
mMediaPlayer.playMRL("udp://@192.168.0.104:1234");
当我尝试播放任何rtsp
流媒体rtsp://192.168.0.10:8554/ss
时,但当我尝试播放任何udp
流媒体时,我得到VLC 无法打开 MRL 'udp://@192.168.0.104:1234'。