Multiple instance VLC managenment
Posted: 10 Jul 2015 12:08
I have successfully created Multiple instance of VLC player using the recent merged code.I have problem managing life cycle of vlc .ie when the android activity goes to onpause and onresume the vlc player stops rendering video and surface on which video was rendering is blank.
Can anyone point me what am i missing?
The below is the sample code of my custom VLC player using libvlc for android project
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();