I am trying to run a PyQt6 example , but the method to advance the video player to the next clip gets the UI stuck (unresponsive). How can I fix that?
The code to move to the next clip is
@Slot()
def next_clicked(self):
print(f"next_from {self._playlist_index}")
self._playlist_index = (self._playlist_index + 1) % len(self._playlist)
self._player.setSource(self._playlist[self._playlist_index])
I have checked that I have a valid playlist containing more than one clip, and the index correctly progresses from n-1
to 0
, etc. Once setSource()
is executed, the UI becomes unresponsive and needs to be killed.
I am running this on Windows 11 with the latest patches and Python 3.11.