After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699762 - doesn't provide any feedback that a media format is unsupported
doesn't provide any feedback that a media format is unsupported
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2013-05-06 14:54 UTC by William Jon McCann
Modified: 2013-05-17 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mark unplayable tracks with error icon, skip them (8.95 KB, patch)
2013-05-08 16:59 UTC, Vadim Rutkovsky
none Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. Also implements now playing icon status for Songs view (13.47 KB, patch)
2013-05-13 11:07 UTC, Vadim Rutkovsky
none Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. (14.23 KB, patch)
2013-05-16 16:12 UTC, Vadim Rutkovsky
none Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. (14.23 KB, patch)
2013-05-16 16:15 UTC, Vadim Rutkovsky
none Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. (19.63 KB, patch)
2013-05-17 12:22 UTC, Vadim Rutkovsky
needs-work Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. (19.68 KB, patch)
2013-05-17 14:20 UTC, Vadim Rutkovsky
committed Details | Review
Add error symbol nearby the tracks, which cannot be played due to missing codecs. (19.68 KB, patch)
2013-05-17 14:22 UTC, Vadim Rutkovsky
committed Details | Review

Description William Jon McCann 2013-05-06 14:54:34 UTC
When I try to play an mp3 file I don't get any feedback as to why it isn't playing. It also incorrectly puts the play button into the paused state.

I do get an error message on the console however.

      JS LOG: URI:none
      JS LOG: Error:Gst.CoreError: Your GStreamer installation is missing a plug-in.,gstdecodebin2.c(3888): gst_decode_bin_expose (): /GstPlayBin:player/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found


We should ensure the play controls are disabled when it isn't playing. And provide feedback to the user that the media isn't supported.
Comment 1 Vadim Rutkovsky 2013-05-06 21:52:53 UTC
>And provide feedback to the user that the media isn't supported.

Not sure about the way of notifying user - should we use notifications similar to gnome-documents (https://github.com/gnome-design-team/gnome-mockups/blob/master/documents/documents-notifications.png)?
Comment 2 Vadim Rutkovsky 2013-05-06 22:28:48 UTC
We can also predict that some URLs cannot be played (using GstPbutils.Discoverer), but need a way to make some tracks unselectable. Could you provide a mockup and possibly gherkin scenarios for that case?
Comment 3 William Jon McCann 2013-05-07 16:40:57 UTC
We should be able to tell if a format is unsupported before the user tries to play it, right? In that case I'd rather not use an in app notification but perhaps show the file as insensitive with a little symbolic "error" indicator in line with it. When clicking that it could display the properties page for the song which could include a button to go get the required codecs etc.
Comment 4 Vadim Rutkovsky 2013-05-08 16:59:34 UTC
Created attachment 243606 [details] [review]
Mark unplayable tracks with error icon, skip them

With this patch tracks will be marked with error signs. We'll implement error dalog for them on next stages
Comment 5 Seif Lotfy 2013-05-09 08:59:41 UTC
Nice patch, but you are missing the functionality for the "Songs" view
Comment 6 William Jon McCann 2013-05-10 19:19:53 UTC
Can we update this to apply to master?
Comment 7 Vadim Rutkovsky 2013-05-13 11:06:29 UTC
Error sign on Songs view + now playing support
Comment 8 Vadim Rutkovsky 2013-05-13 11:07:32 UTC
Created attachment 243975 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs. Also implements now playing icon status for Songs view
Comment 9 Vadim Rutkovsky 2013-05-14 12:26:55 UTC
Updated css and pushed as https://git.gnome.org/browse/gnome-music/commit/?id=33f0263d2d3fa4935d583d95e978b2984e748dfb
Comment 10 Vadim Rutkovsky 2013-05-14 14:46:32 UTC
Proposed commit breaks album view
Comment 11 Vadim Rutkovsky 2013-05-16 16:12:08 UTC
Created attachment 244429 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs.

Also implements now playing icon status for Songs view
Comment 12 Vadim Rutkovsky 2013-05-16 16:15:53 UTC
Created attachment 244430 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs.

Also implements now playing icon status for Songs view
Comment 13 William Jon McCann 2013-05-16 21:00:05 UTC
Review of attachment 244430 [details] [review]:

::: src/view.js
@@ +48,3 @@
+        "/usr/share/icons/gnome/scalable/status/dialog-error-symbolic.svg",
+        -1, 16, true);
+

This is wrong. We can't hardcode paths like this. Want to use the icon-names "media-playback-start-symbolic" and "dialog-error-symbolic".

You can do this via the cell renderer directly instead of loading a pixbuf first.
Comment 14 Vadim Rutkovsky 2013-05-17 12:22:05 UTC
Created attachment 244514 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs.

Also implements now playing icon status for Songs view
Comment 15 Seif Lotfy 2013-05-17 14:14:31 UTC
Review of attachment 244514 [details] [review]:

::: src/view.js
@@ +409,3 @@
+        columnNowPlaying.add_attribute(nowPlayingSymbolRenderer, "visible", 6);
+        columnNowPlaying.add_attribute(nowPlayingSymbolRenderer, "icon_name", 7);
+        listWidget.insert_column(columnNowPlaying, 0)

Forgot some ; here

::: src/widgets.js
@@ +296,3 @@
 
+            if (!songWidget.can_be_played)
+                continue

missing ;
Comment 16 Vadim Rutkovsky 2013-05-17 14:20:13 UTC
Created attachment 244539 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs.

Also implements now playing icon status for Songs view
Updated to follow GJS guidelines on semicolons
Comment 17 Vadim Rutkovsky 2013-05-17 14:22:33 UTC
The following fix has been pushed:
3c018cf Add error symbol nearby the tracks, which cannot be played due to missing codecs.
Comment 18 Vadim Rutkovsky 2013-05-17 14:22:41 UTC
Created attachment 244540 [details] [review]
Add error symbol nearby the tracks, which cannot be played due to missing codecs.

Also implements now playing icon status for Songs view
Updated to follow GJS guidelines on semicolons