vlc.py on Mac
Posted: 05 Jun 2016 22:07
I am trying to get the simplest of examples on Mac OSX 10.11. I have the vlc.py file in my python directory.
When I run this all I get is this error:
What am I doing wrong here?
Python 2.7.11
Code: Select all
import vlc
i = vlc.Instance('--verbose 3')
p = i.media_player_new()
p.set_mrl('/Users/me/Movies/Movie.mp4')
p.play()
Code: Select all
Traceback (most recent call last):
File "/Users/me/PythonScripts/testVLC.py", line 3, in <module>
p = i.media_player_new()
AttributeError: 'NoneType' object has no attribute 'media_player_new'
Python 2.7.11