Code: Select all
mSurfaceView = (SurfaceView) mainActivity.findViewById(R.id.surfaceView);
mSurfaceHolder = mSurfaceView.getHolder();
mLibVLC = new LibVLC();
mLibVLC.setAout(mLibVLC.AOUT_AUDIOTRACK);
mLibVLC.setVout(mLibVLC.VOUT_ANDROID_SURFACE);
mLibVLC.init(mainActivity);
mSurface = mSurfaceHolder.getSurface();
mLibVLC.attachSurface(mSurface, this);
mLibVLC.playMRL(url);
How I can attach the surface?