2015年2月18日 星期三

Python play a video file

Ref:http://www.thecodingforums.com/threads/python-help-sending-a-play-command-to-quicktime-or-playing-amovie-in-python.702701/

1.
import subprocess
subprocess.Popen(["open", "path/to/the/movie.file"])

2. Quicktimeplayer can not auto play
refhttp://www.defaults-write.com/quicktime-player-x-enable-auto-play-feature/#.VOWJ6bCUf6Y

defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1

Disable autoplay

defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 0


沒有留言:

張貼留言