python - Open a video file with the default application in OS X -
i'm trying use python play video file stored locally on computer. more specifically, format .h264 , want open vlc media player. however, have tried far hasn't worked.
i've tried using webbrowser.open(path_to_video_file)'
didn't seem anything.
i tried using subprocess.call('applications/vlc.app', path_to_video_file)
, resulted in either [errno 13] (permission denied) if had slash in front of applications, or [errno 2] (file not found) if didn't have slash in front of applications.
is there way open video file default player?
thank you
Comments
Post a Comment