I looked into this and got it reproduced. However it looks for me like
this isn't anything wrong in media-hub.

Once I do step 4 I get the following in .cache/upstart/unity8-dash.log:

virtual void AalMediaPlayerControl::setMedia(const QMediaContent&,
QIODevice*)

setMedia() media:   QUrl( "" ) 
void QDeclarativeAudio::setPlaylist(QDeclarativePlaylist*)
void QDeclarativeAudio::setSource(const QUrl&)
Calling setMedia
void QMediaPlayer::setMedia(const QMediaContent&, QIODevice*)
virtual void AalMediaPlayerControl::stop() 

virtual void AalMediaPlayerControl::setMedia(const QMediaContent&,
QIODevice*)

Local file URI:  "file:///home/phablet/Music/test.ogg"
setMedia() media:   QUrl( "file:///home/phablet/Music/test.ogg" ) 
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus()
const

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus()
const

Local file URI:  "file:///home/phablet/Music/test.ogg"
Setting media to:   QUrl( "file:///home/phablet/Music/test.ogg" ) 
Setting player as current player
virtual void AalMediaPlayerControl::play() 

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus()
const

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus()
const

void AalMediaPlayerService::play()
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const 

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus()
const

Actually calling m_hubPlayerSession->play()
PlaybackStatusChanged signal arrived via the bus (Status: PlaybackStatus::ready)
PlaybackStatusChanged signal arrived via the bus (Status: 
PlaybackStatus::paused)
PlaybackStatusChanged signal arrived via the bus (Status: 
PlaybackStatus::playing)
PlaybackStatusChanged signal arrived via the bus (Status: 
PlaybackStatus::playing)
PlaybackStatus changed to:  "playing"

Where test.ogg is the song I played with step 2. With this its pretty
clear that something is loading the wrong track into the media player
where we're off to fix anything then. If it is not a problem with how
the dash is using QMediaPlayer or QMediaPlaylist then it still could be
something in qtmultimedia itself.

** Description changed:

  Can be reproduced using silo 4 as of today.
  
  How to reproduce:
-  * Go to the Tracks department on the My Music scope
-  * Press the Play icon on song 1
-  * Go to preview of song 2 (by clicking anywhere except on the Play icon)
-  * Play song 2 from the preview (by pressing the small play icon at the 
bottom)
-  * Notice how song 1 is playing instead of song 2
+  1. Go to the Tracks department on the My Music scope
+  2. Press the Play icon on song 1
+  3. Go to preview of song 2 (by clicking anywhere except on the Play icon)
+  4. Play song 2 from the preview (by pressing the small play icon at the 
bottom)
+  5. Notice how song 1 is playing instead of song 2
  
  After this lots of things break but probably related to the same issue

** Changed in: media-hub (Ubuntu)
       Status: Confirmed => Invalid

** Changed in: media-hub (Ubuntu RTM)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1511029

Title:
  Audio gets confused when playing from source after playing from
  playlist

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to