我首次使用Python綁定開始: 操作系統 - ubuntu 14.04 vlc-1.1.2和python-2.7.6 下面是示例代碼I我工作的:無法使用vlc使用python綁定運行以下代碼
import vlc
instance = vlc.Instance()
media_ply = instance.media_player_new()
media_ply.set_mrl("test1.mp3")
media_ply.play()
但我經常收到以下錯誤信息:
Traceback (most recent call last):
File "vlc1.py", line 3, in <module>
instance = vlc.Instance()
File "/home/ankita/env2/mmenv5/local/lib/python2.7/site-packages/vlc.py", line 1551, in __new__
return libvlc_new(len(args), args)
File "/home/ankita/env2/mmenv5/local/lib/python2.7/site-packages/vlc.py", line 3903, in libvlc_new
ctypes.c_void_p, ctypes.c_int, ListPOINTER(ctypes.c_char_p))
File "/home/ankita/env2/mmenv5/local/lib/python2.7/site-packages/vlc.py", line 246, in _Cfunction
raise NameError('no function %r' % (name,))
NameError: no function 'libvlc_new'
可有人告訴我,我是不是做錯了什麼事?