Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why QMediaPlayer::stop will replay the video?
Forum Updated to NodeBB v4.3 + New Features

Why QMediaPlayer::stop will replay the video?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 371 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MozzieM Offline
    MozzieM Offline
    Mozzie
    wrote on last edited by
    #1

    Hi

    I am using Qt5.12.11 on Windows 10 with VS2017

    today, I found a very interesting thing. when I click the stop button which will call the QMediaPlayer::stop, the QMediaPlayer will play the video again if the QMediaPlayer is on QMediaPlayer::StoppedState. Does this on purpose? But the document just mentioned stop the video. if the QMediaPlayer::stop should just stop the video, Why QMediaPlayer::stop will replay the video?

    [slot] void QMediaPlayer::stop()
    Stop playing, and reset the play position to the beginning.
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Might be a silly question but are you sure you are calling stop twice ?

      Since you don't give details, you could be using a single start/stop button.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        also do you have any cycle play setting?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved