Can anyone point me what am i missing?
The below is the sample code of my custom VLC player using libvlc for android project
Code: Select all
mLibVLC = new LibVLC(VLCOptions.getLibOptions(pref));
mLibVLC.setOnHardwareAccelerationError(this);
mMediaPlayer = new MediaPlayer(mLibVLC);
Media media = new Media(mLibVLC, url);
VLCOptions.setMediaOptions(media, 0);
mMediaPlayer.setMedia(media);
media.release();
mMediaPlayer.setEqualizer(VLCOptions.getEqualizer());
mMediaPlayer.setAudioOutput(VLCOptions.getAout(pref));
mMediaPlayer.getVLCVout().setVideoView(surfaceView);
mMediaPlayer.getVLCVout().setCallback(this);
mMediaPlayer.getVLCVout().attachViews();