how to get audio_output_enumerate_devices() working.
Code: Select all
print "vlc, list? "
self.Instanze = vlc.Instance()
list = self.Instanze.audio_output_enumerate_devices()
for device in list:
print "name {}\ndevices {}\ndescription {}\n ".format(device['name'],device['devices'],device['description'])
build_date = "Tue Jul 2 10:35:53 2013" I get
With __version__ = "N/A"list = self.Instanze.audio_output_enumerate_devices()
File "path/vlc.py", line 1388, in audio_output_enumerate_devices
for d in range(libvlc_audio_output_device_count (self, i.name))]
NameError: global name 'libvlc_audio_output_device_count' is not defined
build_date = "Mon Sep 10 16:51:25 2012" I get
name alsa
devices []
description ALSA audio output
...
if I do a
Code: Select all
Instanze.mediaplayer.audio_output_get_device_type()
My aim is to use
audio_output_device_set(self, psz_audio_output, psz_device_id)
for setting the audio aoutput
as a workoround I use
Code: Select all
playVlc("--aout=alsa --alsa-audio-device=hdmi:CARD=NVidia,DEV=0")
def playVlc(self, audio=""):
self.instance = vlc.Instance(audio)