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. QMediaPlayer not resuming after pause
QtWS25 Last Chance

QMediaPlayer not resuming after pause

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 422 Views
  • 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 Offline
    S Offline
    Sikarjan 0
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      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
      2

      • Login

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