I am trying to create a program that will start a VLC stream using a file and then when the user selects it should stop the VLC stream and start a new stream using a different file.
To stop VLC I am currently using killall vlc which I think its a bad way to do it. Could you tell me if there is a command to stop the stream within my program code?
Thanks