Hey again !<br><br>After digging into the vlc mozilla plugin code, I managed to get a mini C libvlc player that uses alsa + xv for rendering. I didn't manage to learn how to render inside a widget or anything else than a standalone vout_plugin window though. 
<br>When looking inside the NPP_SetWindow function inside vlcshell.cpp, it seems that vlc is told to render inside the browser using these two lines :<br><br>    value.i_int = (int) (ptrdiff_t) (void *) window->window;
<br>    VLC_VariableSet( p_plugin->i_vlc, "drawable", value );<br><br>The fact is that I don't really understand what is actually passed to libVLC. the window variable is a NPWindow* and window->window is a platform-dependant value that corresponds to the window ID under X11, HWND under win32 and NP_PORT under OSX. Does that mean that to render inside a widget, i have to find this window unique ID so that libvlc renders directly into the application window? If true, what are the variables I should set using VLC_VariableSet under each platform to actually get the rendering working?
<br><br>Thanks again.<br><br><div><span class="gmail_quote">On 3/23/06, <b class="gmail_sendername">Benjamin Pracht</b> <<a href="mailto:bigben+spam@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bigben+spam@videolan.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Le jeudi 23 mars 2006 à 08:57 +0100, lastrainson a écrit :<br>> Hello everyone.<br>><br>> This is my first post here, therefore I hope I'm posting at the right<br>> place.<br>><br>> I would like to write an application program which would embed the VLC
<br>> library for embedded video playing and that would be written in Qt. I<br>> looked into the VLC code but I must admit that I'm a little confused<br>> about how and what I should work with to have my video playing inside
<br>> a QWidget for example. What I'd like is to code my own Qt widget that<br>> would draw itself by calling what should render the video inside the<br>> VLC code.<br>><br><br>Well, this is possible using libvlc... You may want to have al look at
<br>the code of the mozilla plugin to have an instance of how to use the<br>API. Don't hesitate to ask any further question.<br><br>--<br>BigBen<br><br>--<br>This is the vlc-devel mailing-list, see <a href="http://www.videolan.org/vlc/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.videolan.org/vlc/</a><br>To unsubscribe, please read <a href="http://developers.videolan.org/lists.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://developers.videolan.org/lists.html
</a><br><br></blockquote></div><br>