Play music with Python-vlc

Easy way to play mp3 with Python-Vlc

Install Python Library
# pip install python-vlc

- Create python file

import os
from time import sleep

os.add_dll_directory('C:\Program Files\VideoLAN\VLC')

import vlc
p = vlc.MediaPlayer('./[SONGPATH].mp3')

while p.is_playing():

Leave a Reply

Your email address will not be published. Required fields are marked *