← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1442473] Re: Notification instantiates qt.mediaplayer even when not playing any sound

 

I wonder if the solution here lies in qtubuntu-media instead? It could
defer talking to media hub until it knows there's something to play.

Otherwise you'll just fight with every app out there doing the normal
QML thing of having an element instantiated statically.

** Changed in: unity8 (Ubuntu)
       Status: New => Opinion

** Changed in: unity-notifications (Ubuntu)
       Status: New => Invalid

** Also affects: qtubuntu-media (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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/1442473

Title:
  Notification instantiates qt.mediaplayer even when not playing any
  sound

Status in the base for Ubuntu mobile products:
  New
Status in qtubuntu-media package in Ubuntu:
  New
Status in unity-notifications package in Ubuntu:
  Invalid
Status in unity8 package in Ubuntu:
  Opinion

Bug description:
  phablet@ubuntu-phablet:~$ system-image-cli -i
  current build number: 166
  device name: mako
  channel: ubuntu-touch/devel-proposed
  alias: ubuntu-touch/vivid-proposed
  last update: 2015-04-09 16:57:42
  version version: 166
  version ubuntu: 20150409
  version device: 20150210
  version custom: 20150409

  This is specially annoying as it happens every time you change the
  volume without an active notification. Side effect is that it fires up
  media-hub, that initializes gstreamer for not really playing anything.

  Just press volume up/down and check the unity8/media-hub logs:

  $ tail -f ./.cache/upstart/unity8.log
  virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer"
  Creating a new static Service instance
  virtual int AalMediaPlayerControl::volume() const 
  void AalMediaPlayerService::createMetaDataReaderControl()
  virtual QMediaPlayer::State AalMediaPlayerControl::state() const 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual void AalMediaPlayerControl::setAudioRole(QMediaPlayer::AudioRole)
  void AalMediaPlayerService::setAudioRole(QMediaPlayer::AudioRole)
  virtual void AalMediaPlayerControl::stop() 
  PlaybackStatusChanged signal arrived via the bus.
  virtual void AalMediaPlayerControl::setMedia(const QMediaContent&, QIODevice*) 
  void AalMetaDataReaderControl::onMediaChanged(const QMediaContent&)
  void AalMetaDataReaderControl::updateMetaData()
  Not updating metadata since the source has not been set.
  void AalMediaPlayerControl::playbackComplete() 
  virtual void AalMediaPlayerControl::stop() 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual void AalMediaPlayerControl::play() 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual void AalMediaPlayerControl::stop() 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 
  virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 

  $ tail -f ./.cache/upstart/media-hub.log
  audio_sink: pulsesink
  video_sink: mirsink
  Creating a new Engine instance in gstreamer::Engine::Engine()
  Private parent instance: 0xabc4c2a4
  Audio stream role: props,media.role=multimedia
  Audio stream role: props,media.role=alert
  void core::ubuntu::media::PlayerImplementation<Parent>::stop() [with Parent = core::ubuntu::media::PlayerSkeleton]
  bool gstreamer::Playbin::set_state_and_wait(GstState): requested state change.
  Setting state for parent: 0xabc4c2a4
  virtual bool gstreamer::Engine::stop()
  Emiting playback_status_changed for parent: 0xabc4c2a4
  void core::ubuntu::media::PlayerImplementation<Parent>::stop() [with Parent = core::ubuntu::media::PlayerSkeleton]
  void core::ubuntu::media::PlayerImplementation<Parent>::stop() [with Parent = core::ubuntu::media::PlayerSkeleton]

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1442473/+subscriptions