Page 1 of 1

How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 05 Mar 2019 06:00
by chamanlata
I am using libvlc using vc++. I am trying to place the VLC output window in MFC Rich Edit Control Window.

libvlc_media_player_set_xwindow (my_player,Id_Preview_Window); where Id_Preview_Window is the Id of this window

Please help !!

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 06 Mar 2019 04:15
by mfkl
That API is for linux. Try libvlc_media_player_set_hwnd

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 06 Mar 2019 04:50
by chamanlata
Yes,got it .

Code: Select all

libvlc_media_player_set_hwnd
worked for me.

Thanks!!

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 06 Mar 2019 04:52
by chamanlata
Is there any command to play the video in Background in MFC Window in vc++ ?

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 06 Mar 2019 08:18
by mfkl
Not sure what "in the background" means. Please explain

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 07 Mar 2019 05:37
by chamanlata
hello,
I am working in MFC Vc++ . I have two Static Editor window in which I am sending text and text is displaying on that window. But I want in the background view it plays the video and send a text will display on the video. Right now My video is playing on the top and text is hidden behind the video. So please how can I play video in background view so that text is displayed on video screen.

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 07 Mar 2019 11:14
by Rémi Denis-Courmont
How you stack and blend your windows is beyond the scope of LibVLC. LibVLC only draws video in the window that you give to it. Please refer to the documentation or help for your GUI toolkit, i.e. MFC.

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 07 Mar 2019 11:24
by chamanlata
ok .is there any command in vlc library to disable the "Always display on top" functionality?

Re: How to place VLC output window in MFC Rich EDit Control in vc++ ?

Posted: 09 Mar 2019 20:45
by Rémi Denis-Courmont
It is disabled by default.