Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.6.2
-
None
Description
Version from PyPi.
the following code provides a tick timer when the video is playing.
self.media_player.positionChanged.connect(self.pos_callback)
def pos_callback(self, position) -> None:
"""
A Tick event triggered by VLC
:param event: The VLC Event triggered
:param controller: The controller upon which the event occurs
:return: None
"""
print(position)
self.controller.media_play_item.timer = position
This works fine until : self.media_player.setLoops(QMediaPlayer.Loops.Infinite)
is used, when the video loops the position value returns, the duration value, then a zero, then the duration and then stops returning anything.