first off, even tough it gives a error the code still works afterwards.
im trying to make a code wich is basically a gambling system and whenever you get that one certain output
it will play a video.
i am wanting to make it that after the video it plays a mp3 file, but whenever i try it gives the
"ERROR: The process "vlc.exe" not found."
i may be sure what causes this but dont know how to get rid of it.
def playvid(video_file:str):
print(f"Playing video: {video_file}")
import subprocess
subprocess.run(["C:\\Program Files\\VideoLAN\\VLC\\vlc.exe", "--fullscreen","--play-and-exit", "abyssalhunter_opening.mp4"])
time.sleep(11.2)
os.system("cmd.exe /c \"taskkill /f /im vlc.exe\"")
time.sleep (2)
subprocess.run (["C:\\Program Files\\VideoLAN\\VLC\\vlc.exe","abyssal_hunter_music.mp3"])