wx support to some feature

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
wxProgrammer
Experienced Solver
Experienced Solver
Posts: 96
Joined: Thu Apr 17, 2014 10:10 am

wx support to some feature

Postby wxProgrammer » Wed Aug 29, 2018 7:49 pm

Hello guys,
It's been a long time that I don't use wxWidgets and now I need to know if it supports some feature with the last stable version.
I need to make interactive videos based on a config file so I need:
1) parse a JSON file
2) play a video at full screen without showing media controls (play, pause, stop and so on)
3) perform some action when a video in on a specific second/interval of time
4) get input from a joypad

1) I found this plugin but IDK if it is good or if I need some other library that is not wx-based.
http://luccat.users.sourceforge.net/wxj ... nload.html

2) is it possible to run video directly without a visibile wxWindow? a simply process in background that run several video and some wxDialog without parent for asking questions to user (and play a video after the response)

3) I though to make a thread that cyclically (every 100ms) check the current position of the video and if it is in a specific range, it performs some specifc action

4) does wx support joypads C++ or I need some external library?

Thanks in advance
I'm Italian but we can speak C++ :)

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

Re: wx support to some feature

Postby doublemax » Wed Aug 29, 2018 8:59 pm

1) parse a JSON file
I tried wxJSON, but found it too bloated. I personally use this one: https://github.com/nbsdx/SimpleJSON (just one header file)

2) play a video at full screen without showing media controls (play, pause, stop and so on)
Should be possible with wxMediaCtrl. Another alternative is https://github.com/tomay3000/wxVLC

3) perform some action when a video in on a specific second/interval of time
There is no event for that, but as you already suggested yourself, you could poll the current position. But don't use a thread, use a wxTimer.

4) get input from a joypad
http://docs.wxwidgets.org/trunk/classwx_joystick.html
Use the source, Luke!

wxProgrammer
Experienced Solver
Experienced Solver
Posts: 96
Joined: Thu Apr 17, 2014 10:10 am

Re: wx support to some feature

Postby wxProgrammer » Thu Aug 30, 2018 8:21 am

Thanks, very kind as always!
Just a question: some controller can vibrate. For example the PlayStation Dualshock controller. They have a 7V pin that allows it to vibrate. What about this with wx?
I'm Italian but we can speak C++ :)

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

Re: wx support to some feature

Postby doublemax » Thu Aug 30, 2018 8:33 am

They have a 7V pin that allows it to vibrate. What about this with wx?
No. You'll need another component for this. But i can't recommend one, i've never used this. But if this is for Windows only, there should be plenty of sample code out there.
Use the source, Luke!

wxProgrammer
Experienced Solver
Experienced Solver
Posts: 96
Joined: Thu Apr 17, 2014 10:10 am

Re: wx support to some feature

Postby wxProgrammer » Thu Aug 30, 2018 5:51 pm

NP, thanks for all.
I'm Italian but we can speak C++ :)


Return to “General Development”

Who is online

Users browsing this forum: No registered users and 3 guests