Home > Software engineering >  How to make the VLC, within a specified control always pop up a new window to play
How to make the VLC, within a specified control always pop up a new window to play

Time:09-17

How to make the VLC picture specified in the child window of the control area, libvlc_media_player_set_hwnd (mp, GetDlgItem (IDC_STATIC_Play));
And FormView2 DLG;

Libvlc_media_player_set_hwnd (mp, DLG. GetDlgItem (IDC_STATIC_Play));
These two approaches are not, how to solve ah, seek much advice!

CodePudding user response:

No one, please help greatly, sharp, etc

CodePudding user response:

BBS have greatly help ah, no one

CodePudding user response:

Your done
The HWND HWND;
HWND=GetDlgItem (ID) control - & gt; GetSafeHwnd ();
Libvlc_media_player_set_hwnd (mp, HWND);

CodePudding user response:

Handle to the window and class object pointer points clear

CodePudding user response:


But I do it, video playback area cannot be assigned region segmentation, whether it be a picture control zoned area (covered the window), or simply let it play on the window, I am to static cutting window, the child window is associated CFromView types, respectively is CFormView1 and CFormView2 will VLC video playback on the two Windows

CodePudding user response:

It's always have up and down two empty area,

CodePudding user response:

Pixel aspect ratio of the problem?

CodePudding user response:

Such as scaling, range if the ratio may be ugly, should also have function Settings

CodePudding user response:

Settled, not in the thread to run

CodePudding user response:

My page VCL why not display interface, sometimes a flash
  • Related