show passive notification when a track fail to play
ClosedPublic

Authored by mgallien on Nov 24 2017, 10:21 PM.

Details

Summary

currently shows a passive notification when a track fail to play

the name of the track is currently an url that is not easy to understand

Test Plan

If I have a track where I force it to be in error (truncate to 0 size), the notification shows

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien created this revision.Nov 24 2017, 10:21 PM

I tried the patch by deleting tracks that are currently in the playlist. Notification works good.
I found another bug during testing, but I think it's unrelated to this revision. I added an album to the playlist and started playback. Then deleted the whole album folder. When you want to start playback of another track it throws the error. Then it tries the next track which also throws an error. The issue is that it does not stop at the end of the playlist, but instead but restarts at the first entry, and then repeats forever

src/PassiveNotification.qml
21

why do you import it this way? also works without "as QQC2" here and shouldn't be needed, since no controls 1 are imported, or am I wrong?

mgallien marked an inline comment as done.Nov 27 2017, 9:59 PM
mgallien added inline comments.
src/PassiveNotification.qml
21

This file is imported from Kirigami2 with some modifications when needed.

mgallien marked an inline comment as done.Nov 27 2017, 10:00 PM

I tried the patch by deleting tracks that are currently in the playlist. Notification works good.
I found another bug during testing, but I think it's unrelated to this revision. I added an album to the playlist and started playback. Then deleted the whole album folder. When you want to start playback of another track it throws the error. Then it tries the next track which also throws an error. The issue is that it does not stop at the end of the playlist, but instead but restarts at the first entry, and then repeats forever

I am trying to identify and fix the reason why tracks are not put invalid in the playlist when they are removed from database. This will involve adding more automatic tests. Do you also want to review the c++ only modifications I do ?

I tried the patch by deleting tracks that are currently in the playlist. Notification works good.
I found another bug during testing, but I think it's unrelated to this revision. I added an album to the playlist and started playback. Then deleted the whole album folder. When you want to start playback of another track it throws the error. Then it tries the next track which also throws an error. The issue is that it does not stop at the end of the playlist, but instead but restarts at the first entry, and then repeats forever

I am trying to identify and fix the reason why tracks are not put invalid in the playlist when they are removed from database. This will involve adding more automatic tests. Do you also want to review the c++ only modifications I do ?

That is probably unnecessary. You certainly can code better than me

mgallien updated this revision to Diff 23542.Dec 6 2017, 6:23 AM

when a track is in error, show the file name or the url if it is not a local file

mgallien updated this revision to Diff 23584.Dec 6 2017, 8:08 PM

track with error becomes invalid in playlist and improve way to notify the user

mgallien retitled this revision from [WIP]: show passive notification when a track fail to play to show passive notification when a track fail to play.Dec 6 2017, 8:08 PM
astippich accepted this revision.Dec 6 2017, 8:47 PM

everything is working fine

This revision is now accepted and ready to land.Dec 6 2017, 8:47 PM
This revision was automatically updated to reflect the committed changes.