← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1320008] Re: QMediaPlayer never changes status to "Stopped" automatically

 

** Changed in: media-hub
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtubuntu-media in Ubuntu.
https://bugs.launchpad.net/bugs/1320008

Title:
  QMediaPlayer never changes status to "Stopped" automatically

Status in Media Hub:
  Fix Released
Status in QT Ubuntu Media:
  In Progress
Status in “qtubuntu-media” package in Ubuntu:
  Fix Released

Bug description:
  In telephony-service-indicator we noticed that QMediaPlayer never goes into Stopped mode once the stream reaches its end.
  As a workaround we are doing the following():

  if (mediaPlayer.duration() == mediaPlayer.position()) {
      mediaPlayer.stop();
  }

  if (mediaPlayer.state() == QMediaPlayer::StoppedState) {
  ....
  }

  Not sure if related, but we noticed that calling stop() in a
  QMediaPlayer that is already stopped and that uses a playlist causes
  it to start playing again. As a workaround we are clearing the
  playlist before calling stop().

  These two bugs started to happen at the same time last week.
  For now we added those workarounds to telephony-service here: https://code.launchpad.net/~tiagosh/telephony-service/fix-indicator-bugs/+merge/219607

To manage notifications about this bug go to:
https://bugs.launchpad.net/media-hub/+bug/1320008/+subscriptions