How to pause a video in vlcj?
I am using web camera. So i use the dshow in vlcj on windows. Code is:
String[] options = {
":dshow-adev=none",
":dshow-vdev=",
":dshow-aspect-ratio=4:3",
":sout-mov-faststart",
":dshow-size=640x480",
":sout=#duplicate{dst=display,
dst='tran
scode{vcodec=h264,venc=x264,vb=1000,
fps=1,scale=1,width=640,height=480}:
standard{access=file,,mux=mov,dst="+fileName+"}'}"
};
mediaPlayer.prepareMedia("dshow://",options);
If i use default pause, that time the video is paused
Ex: mediaPlayer.pause();
. But the video is stored in cache. So I click the play button then the video played with the delayed time.
What i need is if i pause the video the video should pause recording and after press the play it should resume the recording. Similar to JMF.
Can any one please provide the answer?