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: No registered users and 42 guests