<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#0000ff size=2>I used it like the example in the 
developer corner wiki show:</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT color=#0000ff>//////////////////////////////////////</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT color=#0000ff>
<DIV><FONT 
color=#000000>const char * const vlc_args[] = {</FONT></DIV>
<DIV><FONT 
color=#000000>"-I", "dummy", /* Don't use any interface */</FONT></DIV>
<DIV><FONT 
color=#000000>"--ignore-config", /* Don't use VLC's config */</FONT></DIV>
<DIV><FONT 
color=#000000>"--plugin-path=D:\\bright\\test\\testlibvlc\\testlibvlc\\plugins\\" };</FONT></DIV></FONT><FONT 
color=#000000>......</FONT></DIV>
<DIV>
<DIV> m = libvlc_media_new (inst, "http://mycool.movie.com/test.mov", &ex);</DIV>
<DIV> raise (&ex);</DIV>
<DIV> </DIV>
<DIV> mp = libvlc_media_player_new_from_media (m, &ex);</DIV>
<DIV> raise (&ex);</DIV>
<DIV> </DIV>
<DIV> libvlc_media_release (m);</DIV>
<DIV> </DIV>
<DIV> libvlc_drawable_t drawable = (libvlc_drawable_t)GetDlgItem(IDC_STATIC_VIEW)->GetSafeHwnd(); 
</DIV>
<DIV> </DIV>
<DIV> libvlc_media_player_set_hwnd(mp, drawable, &ex);    <FONT 
color=#0000ff>//replace the set_drawable function</FONT></DIV>
<DIV> raise (&ex);</DIV>
<DIV> </DIV>
<DIV> ibvlc_media_player_play (mp, &ex);</DIV>
<DIV> raise (&ex);</DIV>
<DIV> </DIV></DIV>
<DIV><FONT face=Verdana 
size=2>////////////////////////////////////////////////////</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff>is it something wrong about these?</FONT></DIV>
<DIV><FONT color=#0000ff>or forgot something in vlc_args ?</FONT></DIV>
<DIV><FONT color=#0000ff>what is starting the playback mean?</FONT></DIV>
<DIV><FONT color=#0000ff>Could you give a code example for using set_hwnd 
func in mfc?</FONT></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT color=#0000ff>Thanks for your reply~~~</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana 
size=2><SPAN>brightown</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2>2009-07-03</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发件人:</STRONG> Hugo 
Beauzee-Luyssen</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>发送时间:</STRONG> 
2009-07-03 16:35:56</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>收件人:</STRONG> Mailing list for VLC 
media player developers</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>抄送:</STRONG> </FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2><STRONG>主题:</STRONG> Re: [vlc-devel] How to 
use the libvlc_media_player_set_hwndfunction?</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>2009/7/3 wei.tang <wei.tang@nufrontsoft.com></DIV>
<DIV>></DIV>
<DIV>> Hi</DIV>
<DIV>> I download the vlc 1.0.0rc4 and use the libvlc in my project, which is build on vs2008 mfc9.0.</DIV>
<DIV>> when I use libvlc_media_player_set_hwnd function in my simple dialog program , it can not work ,燾ould you give me some example or some advice to use this function?besides I see牋牋爈ibvlc_media_player_set_drawable?function is in deprecated?API , I also used?it in 0.9.9 it wouldn't work also. I think it must something wrong when I use them, Help me~~~THX!!!!</DIV>
<DIV>> Almost爁orgot爐o爏ay ,When I use libvlc_video_set_parent?func ,it works fine and the vlc player created in my dialog static controller, I do not know why~~~</DIV>
<DIV></DIV>
<DIV>This is exactly what I'm doing in my application...</DIV>
<DIV></DIV>
<DIV>libvlc_media_player_set_hwnd( media_player_instance, hwnd, vlc_exception );</DIV>
<DIV></DIV>
<DIV>Do you call this function before starting the playback ?</DIV>
<DIV></DIV>
<DIV>What's your application behavior when calling libvlc_media_player_set_hwnd ??</DIV>
<DIV></DIV>
<DIV>Cheers</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>--</DIV>
<DIV>Hugo Beauz閑-Luyssen</DIV>
<DIV>_______________________________________________</DIV>
<DIV>vlc-devel mailing list</DIV>
<DIV>To unsubscribe or modify your subscription options:</DIV>
<DIV>http://mailman.videolan.org/listinfo/vlc-devel</DIV></FONT></DIV></BODY></HTML>