Skip to content
Advertisement

Tag: python-vlc

How to change VLC-python output device?

In my project, I need to get sound from a radio stream URL and play it. But it needs to be played in a specific output device called “VB-Cable Input (Virtual Audio Cable)”. I couldn’t find a way to do it. This is my current code: I searched through StackOverflow and the VLC documentation, but couldn’t get the result I

VLC trigger action when media reaches timestamp

I’d like to the ability to run some code when the timestamp of a file has been reached (i.e. trigger an alert) How can this be achieved? I was looking at this https://www.geeksforgeeks.org/python-vl … edia-time/ However, I feel like I’m really looking for some kind of daemon (i.e. start the media file with VLC and then have this “listener” perform

play as many sounds as loop count in python

I want the alarm.play() function to repeat for the number of loops and ring 10 times as in the example, but it just keeps ringing once every time I try or change it. How can I fix this? And does it make more sense to use for instead of while ? Answer just stop the alarm at the end of

Advertisement