Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2684

MediaPlayer looping but Position not reset.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.2
    • PySide
    • None
    • Linux/Wayland

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            trb143a Tim Bentley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes