c++ - How to pass D3DDevice in LibVLC to be the "HWND" -
i wanted use libvcl display video in game, have issues using hwnd when game in fullscreen, fullscreen surface overlaps video.
i have d3ddevice handle available though video draw inside game surface. i've found libvlc_media_player_set_hwnd() , not way pass video surface game's surface drawing. there way/example this?
there no such function in libvlc.
i think need use video format callbacks , render video buffer texture yourself. approach used (from java jmonkeyengine example).
see libvlc_video_set_callbacks, libvlc_video_set_format , libvlc_video_set_format_callbacks.
i've seen play full hd smoothly, consume more cpu having vlc render directly video surface.
Comments
Post a Comment