I am trying to write a simple program in Python on Ubuntu that will close/exit/quit VLC Player when playing video has completed.
Can you please guide me that what should I add in my program to get my required result.
import io,sys,os,subprocess
from tkFileDialog import askopenfilename
global process
name= askopenfilename(filetypes=[("Video Files","*.h264")])
myprocess = subprocess.call(['vlc',name])
Thank you