Page 1 of 1

vlc.py on Mac

Posted: 05 Jun 2016 22:07
by speedyrazor
I am trying to get the simplest of examples on Mac OSX 10.11. I have the vlc.py file in my python directory.

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()
When I run this all I get is this error:

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'
What am I doing wrong here?
Python 2.7.11