Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QMediaPlayer not resuming after pause

    General and Desktop
    2
    2
    167
    Loading More Posts
    • 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.
    • S
      Sikarjan 0 last edited by

      Hi,

      I am struggling with this for quite a while and I think I have narrowed down the issue to the function

      void AudioPlayer::play(){
          player->play();
      }
      

      where player is a QMediaPlayer. I need to pause an mp3 or other audio format several times. Once in a while the player does not resume to play but will if the function is called again. The media player status changes to 1 (is playing) but there is no output. When the player starts again it picks up where it was paused. So it is not like my device is muted or so.

      The function is exposed to QML and the entire thing is used in a mobile app for Sailfish. So I am not entirely sure there the problem is. Is it a bug with QMediaPlayer or is it a problem with Sailfish OS?
      Is there a way to find out?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by SGaist

        Hi,

        I would check with the Sailfish folks since it might be related to the backend.

        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 Reply Quote 2
        • First post
          Last post