<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi,<BR>
<BR>
Basically, I want to realize the video zoom function in my application using vlclib.<BR>
<BR>
However the libvlc_video_resize function does not work, and exit when I use this function(libary loading is OK), and when I try to use libvlc_video_get_width, the result is always 0.<BR>
<BR>
One more query is that the libvlc.h has many type: <U>libvlc_input_t</U> as input parameters, i.e. libvlc_video_resize function. But when I check the Doxygen websites, the inpurt parameter is <U>libvlc_media_instance. </U>why this two function is different? are both difinition for libvlc?<BR>
<BR>
here is my testing code, please give me some help, thanks a lot!<BR>
<BR>
libvlc_exception_t excp;<BR> libvlc_instance_t *inst;<BR> int item;<BR> char *myarg0 = "-I"; char *myarg1 = "dummy";<BR> char *myarg2 = "--plugin-path=D:test\\plugins";<BR> char *myargs[4] = {myarg0, myarg1, myarg2, NULL};<BR> char *filename = "d:\\MOV02225.MPG";<BR>
libvlc_exception_init (&excp);<BR> inst = libvlc_new (3, myargs, &excp);<BR> quit_on_exception (&excp);<BR> item = libvlc_playlist_add (inst, filename, NULL, &excp); <BR> quit_on_exception (&excp);<BR> <BR> libvlc_playlist_play (inst, item, 0, NULL, &excp); <BR> Sleep(2000);<BR>
int w = libvlc_video_get_width(lit,&excp);//w is always 0.<BR>
libvlc_video_resize(lit,100,100,&excp);<BR>
Sleep (3000);<BR> libvlc_destroy (inst);<BR> return 0;<BR>
<BR>
<BR>
<BR>
<BR><br /><hr />中国十大热门旅游景点 <a href='http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE' target='_new'>了解更多信息!</a></body>
</html>