Audio gets confused when playing from source after playing from playlist
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
John McAleely | ||
| | media-hub (Ubuntu) |
High
|
Alfonso Sanchez-Beato | ||
| | media-hub (Ubuntu RTM) |
High
|
Alfonso Sanchez-Beato | ||
| | qtmultimedia-opensource-src (Ubuntu) |
High
|
Alfonso Sanchez-Beato | ||
| | qtmultimedia-opensource-src (Ubuntu RTM) |
High
|
Alfonso Sanchez-Beato | ||
Bug Description
Can be reproduced with the code from http://
How to reproduce:
1. Press the red area
2. Listen to song1.mp3 play
3. Press the blue area
4. Notice how song 1 is playing instead of song 2
Note this only happens on the phone, on the desktop all is good.
Related branches
- Jim Hodapp: Approve (code) on 2015-11-20
-
Diff: 703 lines (+237/-42)11 files modifiedinclude/core/media/track_list.h (+8/-0)
src/core/media/mpris/service.h (+12/-0)
src/core/media/mpris/track_list.h (+17/-0)
src/core/media/player_implementation.cpp (+12/-0)
src/core/media/service_skeleton.cpp (+22/-6)
src/core/media/track_list.cpp (+5/-0)
src/core/media/track_list_implementation.cpp (+25/-18)
src/core/media/track_list_skeleton.cpp (+102/-16)
src/core/media/track_list_skeleton.h (+4/-0)
src/core/media/track_list_stub.cpp (+29/-2)
src/core/media/track_list_stub.h (+1/-0)
- Jim Hodapp: Approve (code) on 2015-11-13
-
Diff: 615 lines (+293/-33)8 files modifiedsrc/aal/aalmediaplayercontrol.cpp (+20/-11)
src/aal/aalmediaplayerservice.cpp (+5/-6)
src/aal/aalmediaplaylistcontrol.cpp (+19/-1)
src/aal/aalmediaplaylistcontrol.h (+2/-0)
src/aal/aalmediaplaylistprovider.cpp (+107/-13)
src/aal/aalmediaplaylistprovider.h (+9/-0)
tests/integration/tst_mediaplaylist.cpp (+126/-2)
tests/integration/tst_mediaplaylist.h (+5/-0)
| Changed in media-hub (Ubuntu RTM): | |
| status: | New → Confirmed |
| status: | Confirmed → New |
| Changed in canonical-devices-system-image: | |
| status: | New → Confirmed |
| Simon Fels (morphis) wrote : | #2 |
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/
virtual void AalMediaPlayerC
setMedia() media: QUrl( "" )
void QDeclarativeAud
void QDeclarativeAud
Calling setMedia
void QMediaPlayer:
virtual void AalMediaPlayerC
virtual void AalMediaPlayerC
Local file URI: "file:/
setMedia() media: QUrl( "file:/
virtual QMediaPlayer:
virtual QMediaPlayer:
virtual QMediaPlayer:
Local file URI: "file:/
Setting media to: QUrl( "file:/
Setting player as current player
virtual void AalMediaPlayerC
virtual QMediaPlayer:
virtual QMediaPlayer:
void AalMediaPlayerS
virtual QMediaPlayer:
virtual QMediaPlayer:
Actually calling m_hubPlayerSess
PlaybackStatusC
PlaybackStatusC
PlaybackStatusC
PlaybackStatusC
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: | updated |
| Changed in media-hub (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in media-hub (Ubuntu RTM): | |
| status: | New → Invalid |
| Albert Astals Cid (aacid) wrote : | #3 |
Must be a bug in qtmultimedia then, i've added
console.
console.
console.
to the play() function in DashAudioPlayer.qml and the output says
qml: PLAYING
qml: audio.source empty
qml: audio.playlist file://
qml: PLAYING
qml: audio.source file://
qml: audio.playlist undefined
but as said on the bug i get the first song to play even if i'm passing the second one.
| Albert Astals Cid (aacid) wrote : | #4 |
The full log at http://
| Changed in media-hub (Ubuntu): | |
| status: | Invalid → New |
| Changed in media-hub (Ubuntu RTM): | |
| status: | Invalid → New |
| description: | updated |
| tags: | added: bgplaylist |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| Changed in media-hub (Ubuntu): | |
| assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
| status: | New → In Progress |
| Changed in media-hub (Ubuntu RTM): | |
| status: | New → In Progress |
| Changed in qtmultimedia-opensource-src (Ubuntu): | |
| status: | New → In Progress |
| Changed in qtmultimedia-opensource-src (Ubuntu RTM): | |
| status: | New → In Progress |
| Changed in media-hub (Ubuntu RTM): | |
| assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
| Changed in qtmultimedia-opensource-src (Ubuntu): | |
| assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
| Changed in qtmultimedia-opensource-src (Ubuntu RTM): | |
| assignee: | nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
| Changed in media-hub (Ubuntu): | |
| importance: | Undecided → High |
| Changed in media-hub (Ubuntu RTM): | |
| importance: | Undecided → High |
| Changed in qtmultimedia-opensource-src (Ubuntu): | |
| importance: | Undecided → High |
| Changed in qtmultimedia-opensource-src (Ubuntu RTM): | |
| importance: | Undecided → High |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → John McAleely (john.mcaleely) |
| importance: | Undecided → High |
| milestone: | none → ww46-2015 |
| Albert Astals Cid (aacid) wrote : | #5 |
seems to be fixed with current silo 9
| Changed in canonical-devices-system-image: | |
| milestone: | ww46-2015 → ww02-2016 |
| Changed in canonical-devices-system-image: | |
| milestone: | ww02-2016 → ww46-2015 |
| Changed in canonical-devices-system-image: | |
| milestone: | ww46-2015 → ww02-2016 |
| Changed in media-hub (Ubuntu RTM): | |
| status: | In Progress → Fix Committed |
| Changed in qtmultimedia-opensource-src (Ubuntu RTM): | |
| status: | In Progress → Fix Committed |
| Łukasz Zemczak (sil2100) wrote : | #6 |
This bug was fixed in the package media-hub 4.0.0+15.
---------------
media-hub (4.0.0+
[ Jim Hodapp ]
* Added move_track and various fixes for TrackList.
* Major bump for new TrackList API changes.
[ Alfonso Sanchez-Beato ]
* Make sure our iterator for the current track points to the right
place when (un)shuffling (LP #1510219). Fix crash when client tries
to set the player for a non-existing key. Do not add empty URIs to
the list (LP: #1511029). (LP: #1511073, #1511385, #1510219,
#1510227, #1511029)
-- Jim Hodapp <email address hidden> Wed, 18 Nov 2015 18:36:18 +0000
| Changed in media-hub (Ubuntu RTM): | |
| status: | Fix Committed → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| Changed in qtmultimedia-opensource-src (Ubuntu RTM): | |
| status: | Fix Committed → Fix Released |
| Changed in qtmultimedia-opensource-src (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in media-hub (Ubuntu): | |
| status: | In Progress → Fix Released |


Status changed to 'Confirmed' because the bug affects multiple users.