Page 1 of 1

play movie with vlc

Posted: Wed Feb 09, 2022 2:08 pm
by jak64
Hello,
I would like to automatically start playing a movie with VLC by clicking on the movie title displayed in a ListViewGadget.

Is it possible?

Thank you for your help

Re: play movie with vlc

Posted: Wed Feb 09, 2022 2:51 pm
by RASHAD
Use VLC Command Line with Runprogram()
Google for vlc command line

Re: play movie with vlc

Posted: Wed Feb 09, 2022 2:56 pm
by jak64
Thank you,
I know how to launch the VLC program but I don't know how to pass the title of the film to it !

Re: play movie with vlc

Posted: Wed Feb 09, 2022 2:56 pm
by KianV
The 'RunProgram' command is what you need.
Something of the form:
RunProgram("vlc","path to filename","")

This works as on my Linux setup as is, but you may have to adjust things for another OS.
For example, if VLC is not included in your PATH, you may have to provide the full path to the executable.

Re: play movie with vlc

Posted: Wed Feb 09, 2022 3:03 pm
by infratec

Re: play movie with vlc

Posted: Wed Feb 09, 2022 3:15 pm
by jak64
Thank you,
It works if there is no space in the title

Code: Select all

RunProgram("vlc","D:\test\Alice.avi","")
But it doesn't work with this title, there are error messages

Code: Select all

RunProgram("vlc","D:\test\Alice 1.avi","")
Of course I changed the title of the movie on disk D from "Alice.avi" to "Alice 1.avi"

Re: play movie with vlc

Posted: Wed Feb 09, 2022 3:24 pm
by infratec
Maybe this works:

Code: Select all

RunProgram("vlc", #DQUOTE$ + "D:\test\Alice 1.avi" + #DQUOTE$,"")

Re: play movie with vlc

Posted: Wed Feb 09, 2022 3:26 pm
by jak64
SUPER !
It's OK

Thank you very much