Created
November 10, 2015 09:42
-
-
Save curzona/0faae09354f31dd2c27b to your computer and use it in GitHub Desktop.
vlc_audio_output_device_switching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vlc | |
import time | |
p = vlc.MediaPlayer("organfinale.wav") | |
p.play() | |
device = p.audio_output_device_enum() | |
while device: | |
print "playing on..." | |
print device.contents.device | |
print device.contents.description | |
p.audio_output_device_set(None, device.contents.device) | |
time.sleep(3) | |
device = device.contents.next | |
p.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback occurs with older versions of VLC