Need vlc to display video in window I provide
Posted: 30 Sep 2009 21:48
I am currently running vlc version 1.0.2 through C++ in embedded windows xp, and I need to have vlc draw to a window that I have created. I used to just have VLC display in its own window, but had to change that for issues discussed here: viewtopic.php?f=32&t=65508. So, to do this I am creating my own window and sending VLC the handle via "libvlc_media_player_set_hwnd". Problem is that no matter what I do VLC seems to insist on creating its own window titled "VLC (hardware YUV overlay DirectX output)". This seems somewhat similar to an issue posted a few years ago: https://forum.videolan.org/viewtopic.php?f=15&t=29573 which was never resolved, or http://mailman.videolan.org/pipermail/v ... 62272.html. It is possible that I am missing a parameter that tells VLC to wait for the window handle before creating its own. My other theory comes from the documentation for the function I am using, where it says "If LibVLC was built without Win32/Win64 API output support, then this has no effects." I Was previously using dlls with my project from vlc 0.8.6, and just recently downloaded the new 1.0.2 dlls off of the VLC website (http://www.videolan.org/vlc/download-windows.html)to get access to this new functionality.
So, my question is: are there special parameters that need to be set to tell VLC not to create its own window or, is it possible that the LibVLC I downloaded was built without Win32/Win64 API output support? Or, is there some other reason why my window would be completely ignored? I feel like these may be trivial questions, but I am new to this kind of work and have had no luck in working through this problem. Any advice at all would be greatly appreciated. I have not had much luck with these forums before, so I am trying to give as much information as I can. Even if someone replied telling me why my question is stupid, it would be helpful. Thanks.
Have tried other functions like set drawable, or set parent. They all have the same lack of effect. My window comes up, but it remains blank. And VLC continues to open up its own window where it renders the video.
So, my question is: are there special parameters that need to be set to tell VLC not to create its own window or, is it possible that the LibVLC I downloaded was built without Win32/Win64 API output support? Or, is there some other reason why my window would be completely ignored? I feel like these may be trivial questions, but I am new to this kind of work and have had no luck in working through this problem. Any advice at all would be greatly appreciated. I have not had much luck with these forums before, so I am trying to give as much information as I can. Even if someone replied telling me why my question is stupid, it would be helpful. Thanks.
Have tried other functions like set drawable, or set parent. They all have the same lack of effect. My window comes up, but it remains blank. And VLC continues to open up its own window where it renders the video.