I have been creating a media player for use in my car using python and Tkinter, while using the vlc python bindings (vlc.py) for playing music and video. I have figured out how to play mp3s and mp4 files, but I cannot figure out how to play CDs and DVDs. Any help would be greatly appreciated.
Code that works for playing mp3s
import vlc
instance = vlc.Instance()
player = instance.media_player_new()
media = instance.media_new('path/to/mp3')
player.set_media(media)
player.play()