[vlc-devel] How to use the libvlc_media_player_set_hwndfunction?

brightown brightown at gmail.com
Mon Jul 6 15:19:07 CEST 2009

I used it like the example in the developer corner wiki show:


const char * const vlc_args[] = {
"-I", "dummy", /* Don't use any interface */
"--ignore-config", /* Don't use VLC's config */
"--plugin-path=C:\\....\\plugin\\" };
 m = libvlc_media_new (inst, "e:\\..\\1.flv", &ex);
 raise (&ex);

 mp = libvlc_media_player_new_from_media (m, &ex);
 raise (&ex);

 libvlc_media_release (m);

 libvlc_drawable_t drawable = (libvlc_drawable_t)GetDlgItem(IDC_STATIC_VIEW)->GetSafeHwnd(); 

 libvlc_media_player_set_hwnd(mp, drawable, &ex);    //replace the set_drawable function
 raise (&ex);

 ibvlc_media_player_play (mp, &ex);
 raise (&ex);


is it something wrong about these?
or forgot something in vlc_args ?
what is starting the playback mean?
Could you give a code example for using set_hwnd func in mfc?

Thanks for your reply~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090706/30c4c1a1/attachment.html>

More information about the vlc-devel mailing list