How can I play a regular audio CD and/or DVD with the vlc.py module in python?
<p>I have been creating a media player for use in my car using python and Tkinter, while using the <a href="https://wiki.videolan.org/python_bindings" rel="nofollow noreferrer">vlc python bindings</a> (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.</p>

<p>Code that works for playing mp3s</p>

<pre><code>import vlc
instance = vlc.Instance()
player = instance.media_player_new()
media = instance.media_new('path/to/mp3')
player.set_media(media)
player.play()
</code></pre>