I am using libvlc python binding to play a music file.my code is as follows:
import vlc
instance = vlc.Instance()
#Create a MediaPlayer with the default instance
player = instance.media_player_new()
#Load the media file
media = instance.media_new('01.DONT CARE.mp3')
#Add the media to the player
player.set_media(media)
try:
player.play()
except Exception, e:
raise e
The script executes successfully but I am unable to hear anything. If the code is executed line by line then it works correctly and I am able to hear the sound.Any idea on what might be wrong?
time.sleep()afterplayer.play(), do you hear the sound?