Merge lp://staging/~vthompson/music-app/fix-1445158 into lp://staging/music-app/remix

Proposed by Victor Thompson
Status: Rejected
Rejected by: Victor Thompson
Proposed branch: lp://staging/~vthompson/music-app/fix-1445158
Merge into: lp://staging/music-app/remix
Diff against target: 58 lines (+15/-1)
2 files modified
Player.qml (+13/-1)
music-app.qml (+2/-0)
To merge this branch: bzr merge lp://staging/~vthompson/music-app/fix-1445158
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Music App Developers Pending
Review via email: mp+256741@code.staging.launchpad.net

Commit message

* Save position in currently playing song

Description of the change

* Save position in currently playing song

The Component.onDestruction signal won't work reliably to detect when to set a saved position--and at the moment it doesn't seem to work at all. However, a solution that would work perfectly while the app is not being suspended is to save the position when the position value changes (once a second). This solution will not be perfect when the app is able to be suspended, however, a few other things will need a similar solution including the queueIndex. I think we should and will be able to accommodate them both (queueIndex and the new savedPosition).

Currently when the source is loaded the duration is not detected, so the saved position can not be loaded/seeked to until the song is played.

To post a comment you must log in.
862. By Victor Thompson

Removing debug

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Unmerged revisions

862. By Victor Thompson

Removing debug

861. By Victor Thompson

* Save position in currently playing song

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches