如何设置 Surface 以在 Java-Android 应用程序中显示视频?
目前我做:
mSurfaceHolder = GUIconfig.videoWindow.getHolder();
mLibVLC = LibVLC.getInstance();
mLibVLC.init(GUIconfig.mainWindow);
mLibVLC.useIOMX();
mLibVLC.attachSurface(mSurfaceHolder.getSurface(), new IVideoPlayer() {
@Override
public void setSurfaceSize(int width, int height, int visible_width,
int visible_height, int sar_num, int sar_den) {
}
}, GUIconfig.screenWidth, GUIconfig.screenHeight);
mLibVLC.readMedia("rtsp://129.69.207.174:8554/Stream", false);
mLibVLC.play();
GUIconfig.videoWindow 是一个 SurfaceView
LogCat 显示警告:yuv_rgb_neon filter: can't get output picture
它播放声音,但我看不到视频。我究竟做错了什么?