Getting current frame from media player
Hello, i'm using the following code successfully in order to play videos onto surface view:
MediaPlayer mMediaPlayer = new MediaPlayer(VLCInstance.get()); SurfaceView mSurfaceView = (SurfaceView) findViewById(R.id.player); final IVLCVout vlcVout = Constants.mMediaPlayer.getVLCVout(); vlcVout.detachViews(); vlcVout.setVideoView(mSurfaceView); vlcVout.setWindowSize(mSurfaceDims.getWidth(), mSurfaceDims.getHeight()); vlcVout.attachViews(); mSurfaceView.setKeepScreenOn(true); Media media = new Media(VLCInstance.get(), Uri.parse(path)); mMediaPlayer.setMedia(media); mMediaPlayer.play();
However i need to get the current frame from the mediaplayer in full resolution every 10 seconds, i'd searched every possible resource and i didn't find a way to do that, so is this possible with vlc?
Note that it is possible with java (desktop vlcj) through the **DirectMediaPlayer **class. thanks in advance!!