How to attach SurfaceView on libVLC 1.9.8?
Posted: 25 May 2016 11:34
Hello, on version 1.0.6 I am using follow code:
But version 1.9.8 doesn't have attachSurface method.
How I can attach the surface?
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?