I'm doing an app in wxWidgets and I need to run a linux command. The command is mpv <video URL> <some settings> and it runs the video from the link. It works but the problem is that the gui app freezes until I close the video window. I'm running the command by using "system(<command>);".
What should I do in order to avoid freezing the window when playing the video?