Search code examples
python-vlc

playing multiple instances of vlc with audio in python-vlc


I'm new to vlc.py and i'm trying to play two instances of MediaPlayer() which is working but the second instance is not playing audio while the first instance is playing fine.

some basic codes from stackoverflow and python-vlc documentations


Solution

  • You can use the multiprocessing module in Python. That way you can have 3 processes, where one is the controlling one, and the other two are the ones containing each one VLC instance.