wxVLC - a wxWidgets VLC Media Player

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

wxVLC - a wxWidgets VLC Media Player

Post by tomay3000 »

wxVLC is a Media Player sample that uses the libVLC library as its main audio/video backend.
Actually, I compiled it only under wxGTK (2 and 3).
You may try compiling it under wxMSW and wxOSX, if you get any problem please contact me.
This code also bundles with an extended version of the wxImagePanel which I will post in a separate thread.

wxVLC Screenshot:
Screenshot from 2018-06-04 07-28-17.png
wxVLC Source Code:
wxVLC.7z
(94.86 KiB) Downloaded 530 times
GitHub:
https://github.com/tomay3000/wxVLC

Thank you.
Last edited by tomay3000 on Tue Jun 19, 2018 4:59 pm, edited 2 times in total.
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

Well done. I remember that project died at some time back.
Can you organize the project as a library and host it on github?
Am sure you are going to get interested people there.
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by tomay3000 »

Good idea, I just found that the wxMSW port has one bug: VLC will prevent event propagation (e.g double click is not working on the video panel).
And I just found a solution and I am fixing it.
When everything is OK I will do it :wink:
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

tomay3000 wrote:Good idea, I just found that the wxMSW port has one bug: VLC will prevent event propagation (e.g double click is not working on the video panel).
And I just found a solution and I am fixing it.
When everything is OK I will do it :wink:
That'll be great
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by tomay3000 »

I have uploaded the new stable release.
All is working fine now.
Tested under wxMSW and wxGTK.
wxOSX Testers needed.

Thank you.
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

tomay3000 wrote:I have uploaded the new stable release.
All is working fine now.
Tested under wxMSW and wxGTK.
wxOSX Testers needed.

Thank you.
Where's the Link?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by tomay3000 »

in the first post I updated the previous link
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

tomay3000 wrote:in the first post I updated the previous link
Oh! I see. Thanks
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

Hi Tomay3000,

Need your help, I am trying to use your video player you created using VLC and wxwidgets. I am trying to run in code blocks. I am stuck in vlc/vlc.h file not found. how to download the vlc header file. please help.

Regards,
rajk.
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax »

newbierajk wrote: Mon Aug 28, 2023 3:58 am Need your help, I am trying to use your video player you created using VLC and wxwidgets. I am trying to run in code blocks. I am stuck in vlc/vlc.h file not found. how to download the vlc header file. please help.
You need the vlc sdk. If you download an archive version of VLC (e.g. vlc-3.0.18-win32.7z), it'll be in the /sdk directory.
Use the source, Luke!
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

thank you @Doublemax I downloaded. It was able to resolve the vlc.h file error. This is what I have done so far in building the video player.

I installed code blocks, since it mentioned that the code blocks project is created for building this code. I opened the project and when I build it, it gives unresolved reference to libvlc_new. I googled and added the link libraries, search directories to the vlc sdk include files and then when I build it , it says cannot find libvlc.lib file. I copied the entire sdk folder with include and lib folder into the project folder but still it says the same.

I am newbie in building it in code blocks. I know I am missing something but not sure what. For building this code, these are instructions mentioned in Readme file:

Building
--------

Code::Blocks project is provided to build it.

TODO: Add CMake build system.

I opened the code block project file in codeblocks ide, what needs to be done in "Add cmake build system". I really want to try this video player that Tomay created for one of my requirement. if you or him can help me that would be great.

Thanks a lot in advance.

regards,
rajk
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax »

newbierajk wrote: Tue Aug 29, 2023 2:13 am and added the link libraries, search directories to the vlc sdk include files and then when I build it , it says cannot find libvlc.lib file. I copied the entire sdk folder with include and lib folder into the project folder but still it says the same.
Do not copy the files. Just add them to the linker settings in your project and set a search path so that the linker finds them.
You also need to add a search path to the header files in the compiler settings.

As i don't use CB, i can't tell you where and how exactly, but you can probably find some information in PB's guide:
viewtopic.php?f=19&t=47231

Additionally, at runtime, some files from the VLC sdk must be copied to where the executable is:
/plugins
libvlc.dll
libvlccore.dll
Use the source, Luke!
newbierajk
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Aug 28, 2023 1:07 am

Re: wxVLC - a wxWidgets VLC Media Player

Post by newbierajk »

Thank you for all the response. I will check the PB guide. I also tried linking the directory for the libraries and also passing the path for the header files in the compiler search directories, still faced the issue. Is the user Tomay3000 available to answer my query? may be he can shed more light on it.

Regards,
Bobin.
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxVLC - a wxWidgets VLC Media Player

Post by doublemax »

After some more research: I think the provided .lib files only work with Visual C++, not with MinGW.

Check if any of these links help:
https://packages.msys2.org/package/ming ... po=mingw64
https://sourceware.org/binutils/docs/bi ... ltool.html
https://code.google.com/archive/p/lib2a/

As i don't use MinGW and have never used any of these, i can't help with them.
Use the source, Luke!
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2408
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Re: wxVLC - a wxWidgets VLC Media Player

Post by evstevemd »

newbierajk wrote: Tue Aug 29, 2023 3:52 pm Thank you for all the response. I will check the PB guide. I also tried linking the directory for the libraries and also passing the path for the header files in the compiler search directories, still faced the issue. Is the user Tomay3000 available to answer my query? may be he can shed more light on it.

Regards,
Bobin.
Can you post full trace of what you are getting right now?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply