automatically start VLC.exe on http POST

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Roelli78
New Cone
New Cone
Posts: 1
Joined: 21 Jun 2020 12:30

automatically start VLC.exe on http POST

Postby Roelli78 » 21 Jun 2020 12:33

Hi.

Any idea on how to start VLC.exe when I send a http POST message?

(and maybe automatically terminate it after 10 Seconds or so?)

Thanks!

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: automatically start VLC.exe on http POST

Postby chubinou » 22 Jun 2020 10:16

with a web server. the how depends of the web server and language you use.

for instance with python flask

Code: Select all

from flask import Flask import subprocess app = Flask(__name__) @app.route('/', methods = ['POST']) def run_vlc_on_post(): subprocess.Popen(['vlc']) return 'vlc started!'


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests