dark gdk ( or even directX, not sure ) doesnt support that anymore, try this function : ( i got it from sydbod )
//global variable
HWND hwnd_MCIWnd; // MCIWnd window handle
void PlayVideo (HWND hwnd_ParentWindow, LPSTR lpstr, int OriginX, int OriginY, int Width, int Height)
{
DWORD dwMCIWndStyle = WS_CHILD | // child window
WS_VISIBLE | // visible
MCIWNDF_NOTIFYMODE | // notifies of mode changes
MCIWNDF_NOPLAYBAR; // hides toolbar
hwnd_MCIWnd = MCIWndCreate(hwnd_ParentWindow, GetModuleHandle(NULL), dwMCIWndStyle, NULL);
MCIWndOpen(hwnd_MCIWnd, lpstr, NULL); // new device in window
SetWindowPos(hwnd_MCIWnd,NULL,OriginX,OriginY,Width,Height,SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
MCIWndPlay(hwnd_MCIWnd); // plays device
}
to stop it simply destroy the window ( DestroyWindow ( hwnd_MCIWnd ); )
to use it:
#include "globstruct.h" //you need that header
PlayVideo ( g_pGlob->hWnd, "directory", 0,0, dbScreenWidth(), dbScreebHeight() );