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 701736 - Add PackageKit integration
Add PackageKit integration
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gnome-music-maint
gnome-music-maint
available
Depends on:
Blocks:
 
 
Reported: 2013-06-06 13:55 UTC by Arnel Borja
Modified: 2016-01-05 14:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
player: Add support for installing missing gstreamer plugins (7.92 KB, patch)
2015-02-26 12:05 UTC, Kalev Lember
committed Details | Review
player: Avoid a hard dep on gstreamer 1.5 (3.79 KB, patch)
2015-02-26 12:05 UTC, Kalev Lember
committed Details | Review
downstream patch: Reduce gstreamer version requirement (1.49 KB, patch)
2015-02-26 12:05 UTC, Kalev Lember
committed Details | Review

Description Arnel Borja 2013-06-06 13:55:23 UTC
We should add PackageKit integration so that the users could easily install missing GStreamer plugins.
Comment 1 Shivani Poddar 2013-06-24 09:55:44 UTC
Needs info on how the UI reacts to playing of unsupported files in gnome-music. Designer feedback required.
Comment 2 Shivani Poddar 2013-06-24 09:59:16 UTC
Needs info on how the UI reacts to playing of unsupported files in gnome-music. Designer feedback required.
Comment 3 Arnel Borja 2013-08-31 11:30:17 UTC
According to https://bugzilla.gnome.org/page.cgi?id=fields.html#status

NEEDINFO
    More information from the reporter is needed to proceed further in fixing this bug. This should not be used when someone needs more information from a developer - a NEW or ASSIGNED bug implicitly needs more information from the developer.

If you need to ask a designer for feedback, just ask them directly or CC them :D
(btw, jimmac is already in CC).
Comment 4 Allan Day 2013-11-01 10:38:02 UTC
We went back and forth on this one, if I recall correctly. I think the conclusion was to show unsupported tracks in the UI but indicate that they couldn't be played.

I have recently been looking at the design of packagekit integration as a part of the new software app. This could have some impact on music.

https://raw.github.com/gnome-design-team/gnome-mockups/master/software/version2/wire-codec-install.png

As you can see, one of the goals is to check that the required codecs are installed at import time. Basically, when you add a track to music, that is the time the check should be performed.
Comment 5 Vadim Rutkovsky 2013-11-01 11:05:48 UTC
Thanks Allan, seems clear to me. Should we display the warning once on startup or each time user may play unsupported media - e.g. on selected album view or artists?
Comment 6 Allan Day 2014-04-17 17:40:37 UTC
The wireframes have been updated recently - please check them over to ensure they make sense.

(In reply to comment #5)
> Thanks Allan, seems clear to me. Should we display the warning once on startup
> or each time user may play unsupported media - e.g. on selected album view or
> artists?

The designs suggest:

 1. Show an in-app notification when unsupported music appears in the collection.
 2. If the user tries to play unsupported music, show a dialog.
Comment 7 Allan Day 2014-11-18 14:40:48 UTC
(In reply to comment #6)
...
> The designs suggest:
> 
>  1. Show an in-app notification when unsupported music appears in the
> collection.
>  2. If the user tries to play unsupported music, show a dialog.

You could add 2 to start with, and deal with 1 later...
Comment 8 Vadim Rutkovsky 2015-02-19 15:57:49 UTC
Some updates on the topic in totem: https://bugzilla.gnome.org/show_bug.cgi?id=744610
Comment 9 Kalev Lember 2015-02-26 12:04:56 UTC
(In reply to Allan Day from comment #7)
> (In reply to comment #6)
> ...
> > The designs suggest:
> > 
> >  1. Show an in-app notification when unsupported music appears in the
> > collection.
> >  2. If the user tries to play unsupported music, show a dialog.
> 
> You could add 2 to start with, and deal with 1 later...

Here's a patch that adds an initial implementation of 2:
Comment 10 Kalev Lember 2015-02-26 12:05:36 UTC
Created attachment 297963 [details] [review]
player: Add support for installing missing gstreamer plugins
Comment 11 Kalev Lember 2015-02-26 12:05:51 UTC
Created attachment 297964 [details] [review]
player: Avoid a hard dep on gstreamer 1.5

Only use the new functions if we have new enough gst-plugins-base.
Comment 12 Kalev Lember 2015-02-26 12:05:58 UTC
Created attachment 297965 [details] [review]
downstream patch: Reduce gstreamer version requirement

We carry backported gstreamer1-plugins-base patches that add the
required new symbols.
Comment 13 Vadim Rutkovsky 2015-02-26 12:19:01 UTC
Crashes for me in jhbuild:

Traceback (most recent call last):
  • File "/home/vrutkovs/jhbuild/install/lib/python3.3/site-packages/gnomemusic/player.py", line 310 in _onBusError
    self._handle_missing_plugins()
  • File "/home/vrutkovs/jhbuild/install/lib/python3.3/site-packages/gnomemusic/__init__.py", line 45 in wrapped
    retval = fn(*v, **k)
  • File "/home/vrutkovs/jhbuild/install/lib/python3.3/site-packages/gnomemusic/player.py", line 291 in _handle_missing_plugins
    self._start_plugin_installation(missing_plugin_messages, True)
  • File "/home/vrutkovs/jhbuild/install/lib/python3.3/site-packages/gnomemusic/__init__.py", line 45 in wrapped
    retval = fn(*v, **k)
  • File "/home/vrutkovs/jhbuild/install/lib/python3.3/site-packages/gnomemusic/player.py", line 230 in _start_plugin_installation
    install_ctx.set_desktop_id('gnome-music.desktop');
AttributeError: 'InstallPluginsContext' object has no attribute 'set_desktop_id'

Probably my gst is too old, will see if updating helps
Comment 14 Kalev Lember 2015-02-26 12:33:34 UTC
Yup, definitely too old gst.

Note that the last patch is a downstream patch for F22 and not something that should go upstream. gstreamer1-plugins-base-1.4.5-2.fc22 has patches that backport set_desktop_id() and friends.
Comment 15 Kalev Lember 2015-05-13 10:04:59 UTC
Can I push this to master so that we get some rawhide testing during the F23 cycle?
Comment 16 Vadim Rutkovsky 2015-05-13 10:59:41 UTC
(In reply to Kalev Lember from comment #15)
> Can I push this to master so that we get some rawhide testing during the F23
> cycle?

Right, pushed to master:
https://git.gnome.org/browse/gnome-music/commit/?id=81529bac3a5855d4b104230bf97425ec847c8685
https://git.gnome.org/browse/gnome-music/commit/?id=d7695285b0419541a3492ef1d85d8076fcc49d2b
https://git.gnome.org/browse/gnome-music/commit/?id=673c17a1aedde45ac623b4b285a33afcc0c01016

Keeping this open for more tests
Comment 17 Kalev Lember 2015-05-13 11:03:29 UTC
Thanks!

One minor nit - the last patch was meant as a downstream patch for Fedora to make it work with the gstreamer 1.4 there that has new features backported from master - can you revert it upstream please?
Comment 18 Vadim Rutkovsky 2015-06-17 08:41:12 UTC
Review of attachment 297963 [details] [review]:

Comitted
Comment 19 Vadim Rutkovsky 2015-06-17 08:41:17 UTC
Review of attachment 297964 [details] [review]:

Comitted
Comment 20 Vadim Rutkovsky 2015-06-17 08:41:30 UTC
Review of attachment 297965 [details] [review]:

Committed
Comment 21 Allan Day 2016-01-05 14:12:58 UTC
If more tests are required it would probably be best to use a separate bug, so closing for now. Also removing the 3.18 target-milestone.