[vlc-devel] libvlc_playlist_pause doesn't function?

ChengYQ crashboat at hotmail.com
Tue Oct 2 19:49:39 CEST 2007


Hi,
 
When I run libvlc_playlist_play, the video starts; when I run libvlc_playlist_stop, the video stops.
However when I use libvlc_playlist_pause, it doesn't pause. Is there any tricky to use pause function?
 
The vlc I used is the stable version 0.8.6c.
 
The codes are as following:
 
char *myarg0 = "test";
char *myarg1 = "v4l://";
char *myarg2 = ":v4l-vdev=/dev/video0";
char *myarg3 = ":v4l-adev=/dev/dsp";
char *myargs[4] = {myarg0,myarg1,myarg2,myarg3};
libvlc_exception_init (&excp);
inst = libvlc_new (4, myargs, &excp);
quit_on_exception (&excp);
libvlc_playlist_play (inst, -1, 0, NULL, &excp);//video started 
sleep(10);
libvlc_playlist_stop(inst,&excp);  //video stopped
sleep(10);
libvlc_playlist_play (inst, -1, 0, NULL, &excp);//video started again
sleep(10);
libvlc_playlist_pause(inst,&excp);//video doesn't pause
sleep(10);
libvlc_destroy(inst);
 
 
Thanks a lot for your help!!
 
Yours
J
 
 
 
_________________________________________________________________
Windows Live Spaces 中最年轻的成员!
http://miaomiaogarden2007.spaces.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071002/a7f3ddc1/attachment.html>


More information about the vlc-devel mailing list