Python-vlc MediaPlayer(URI).play() jumps immediately to next line of code

This forum is about all development around libVLC.
zoof
New Cone
New Cone
Posts: 3
Joined: 10 Apr 2013 16:01

Python-vlc MediaPlayer(URI).play() jumps immediately to next line of code

Postby zoof » 02 Dec 2016 03:17

Hi,

Is there some way to make python-vlc finish playing before continuing to the next line of code? I believe my script stops playing sound when there is a collision. I.e., vlc tries to play something else before another sound clip has finished.

Thanks in advance!

nevare
Blank Cone
Blank Cone
Posts: 17
Joined: 16 Sep 2016 13:39

Re: Python-vlc MediaPlayer(URI).play() jumps immediately to next line of code

Postby nevare » 02 Dec 2016 09:29

You should probably handle the MediaPlayerEndReached event of the media player. Take a look at the EventManager class.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests