[vlc-devel] How to use the libvlc_media_player_set_hwndfunction?

bright town brightown at gmail.com
Mon Jul 6 04:49:28 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=D:\\bright\\test\\testlibvlc\\testlibvlc\\plugins\\" };
> ......
>   m = libvlc_media_new (inst, "http://mycool.movie.com/test.mov", &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/20c58c45/attachment.html>


More information about the vlc-devel mailing list