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!
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”
Users browsing this forum: Google [Bot] and 42 guests