python_vlc : Display video title error

This forum is about all development around libVLC.
eman123
New Cone
New Cone
Posts: 4
Joined: 22 Aug 2016 08:20

python_vlc : Display video title error

Postby eman123 » 23 Aug 2016 12:32

I get an error when trying to run [player.set_video_title_display(6,5000) ]

the code:
Instance = vlc.Instance()
player = Instance.media_player_new()
Media = Instance.media_new_location(url)
player.set_media(Media)
x= Media.get_meta(0)
player.set_title(1)
player.set_video_title_display(6,5000)
player.play()

the error :

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\python\M3U\stream.py", line 12, in <module>
player.set_video_title_display(6,5000)
File "C:\Python27\lib\site-packages\vlc.py", line 3381, in set_video_title_display
return libvlc_media_player_set_video_title_display(self, position, timeout)
File "C:\Python27\lib\site-packages\vlc.py", line 5809, in libvlc_media_player_set_video_title_display
None, MediaPlayer, Position, ctypes.c_int)
File "C:\Python27\lib\site-packages\vlc.py", line 237, in _Cfunction
p = ctypes.CFUNCTYPE(*types)
File "C:\Python27\lib\ctypes\__init__.py", line 104, in CFUNCTYPE
class CFunctionType(_CFuncPtr):
TypeError: Error when calling the metaclass bases
item 2 in _argtypes_ has no from_param method

Any ideas ?-

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests