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 536656 - Video support should be an extension
Video support should be an extension
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: general
git master
Other All
: Normal enhancement
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
: 572791 608326 (view as bug list)
Depends on:
Blocks: 640248
 
 
Reported: 2008-06-04 17:06 UTC by Jakub 'Livio' Rusinek
Modified: 2020-03-17 08:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
video as an etention (22.28 KB, patch)
2010-12-30 18:08 UTC, olivier dufour
needs-work Details | Review
video as an etention (39.15 KB, patch)
2011-01-15 18:14 UTC, olivier dufour
none Details | Review
video as an extension (40.75 KB, patch)
2011-01-15 19:12 UTC, olivier dufour
none Details | Review

Description Jakub 'Livio' Rusinek 2008-06-04 17:06:58 UTC
how this is useful?

for example, I utilize banshee as music player only and need no video playback, so if video library and playback would be a plugin I would simply disable it.

sure there will be people who will want to disable music library and playback for example.
Comment 1 Alexander Kojevnikov 2009-02-23 09:36:16 UTC
*** Bug 572791 has been marked as a duplicate of this bug. ***
Comment 2 the_koala_avenger 2009-12-23 21:54:33 UTC
Hi, I am using Banshee too. I think it is a great audio player and audio manager.
But I don't use the video part (as I don't use the Podcast, Last.fm and webradio parts) as I use other programs to do it. I like to stick to the *NIX way (KISS, one program - one use).

Can Video support be a plugin, and be disabled at will, like the Podcast, Last.fm, webradio parts, Mirage etc ?
Comment 3 Alexander Kojevnikov 2010-01-28 11:14:56 UTC
*** Bug 608326 has been marked as a duplicate of this bug. ***
Comment 4 fickdichinsknie 2010-01-28 11:25:23 UTC
This is exactly why I registered.

VLC is way to good. banshee is good in Audio, but I think the vast majority of users don't use it to watch video.
Comment 5 tehmasp 2010-10-05 02:13:19 UTC
ditto. I would love the ability to 'disable' Video in the extensions/plugins list of Banshee. Love my Banshee - but never use the video feature.
Comment 6 olivier dufour 2010-12-30 18:08:15 UTC
Created attachment 177270 [details] [review]
video as an etention

here is a patch which move video as an extention
Comment 7 David Nielsen 2010-12-30 18:16:37 UTC
I haven't read the code but I wonder how this interacts with the importer. E.g. if the extension is disabled, what happens when the importer finds a video file? Other scenerios would be having imported a bunch, then deciding to disable the video source.
Comment 8 Bertrand Lorentz 2011-01-02 16:32:03 UTC
Review of attachment 177270 [details] [review]:

This doesn't compile for me :

Making all in Banshee.Services
  MCS   ../../../bin/Banshee.Services.dll
./Banshee.Sources/SourceManager.cs(63,17): error CS0246: The type or namespace name `VideoLibrarySource' could not be found. Are you missing a using directive or an assembly reference?

Just moving the class in an extension is not enough, as it is referenced in several places in Banshee.Services. Having code in the core depend on an extension is of course not wanted.

Moreover, I think we have several places where we assume the ServiceManager.SourceManager.VideoLibrary property is not null. Those would have to be modified in order to handle the video extension being disabled.

::: src/Extensions/Banshee.Video/Banshee.Video/VideoLibrarySource.cs
@@ +5,3 @@
+//   Cool Extension Author <cool.extension@author.com>
+//
+// Copyright (C) 2010 Cool Extension Author

I think this file is a copy of the original VideoLibrarySource.cs file, so the copyrights should be preserved

@@ +42,3 @@
+    //      DatabaseSource - generic, DB-backed Track source; used by PlaylistSource
+    //        PrimarySource - 'owns' tracks, used by DaapSource, DapSource
+    //          LibrarySource - used by Music, Video, Podcasts, and Audiobooks

Please remove the boilerplate comments
Comment 9 olivier dufour 2011-01-03 09:09:08 UTC
This patch was just a step because I do a big refactor to have a cover view for movies/tv-show.
I just send it before the code has ever change too much.
Now the code have change a lot. So I can not send a new patch with only that change.
I have a view with cover and few metadata jobs...
The code compile but is far from finished.
So, I will have to stabilize the code first.

PS: for copyright and comments it is generated by create-extension script. I have ever removed it in my version but it is far from the original...
Comment 10 olivier dufour 2011-01-15 18:14:16 UTC
Created attachment 178401 [details] [review]
video as an etention

To make a cleaner commit for video refactor. I restart and re add my code slowly into the branch.
So I take the time to made a cleaner patch.
Comment 11 olivier dufour 2011-01-15 19:12:56 UTC
Created attachment 178402 [details] [review]
video as an extension

oops the last one do not compile so fix the build...
Comment 12 David Nielsen 2011-01-15 21:55:23 UTC
Review of attachment 178402 [details] [review]:

Applies (though still has a hyena commit which shouldn't be there), compiles and works beautifully. It survives multiple load/unloads and works as expected.
Comment 13 David Nielsen 2011-01-15 21:55:25 UTC
Review of attachment 178402 [details] [review]:

Applies (though still has a hyena commit which shouldn't be there), compiles and works beautifully. It survives multiple load/unloads and works as expected.
Comment 14 David Nielsen 2011-01-22 10:34:11 UTC
I split this in two since it is two separate requests for extension work and Olivier is hard at work on the Video part of the equation.

People simply wishing to see this code in action can read the following article:

http://www.omgubuntu.co.uk/2011/01/banshee-video-tv-shows-windows-and-hackfest-oh-my/

Oliviers work in progress code seems to have moved to his github repo here:

https://github.com/dufoli/banshee/commits/video
Comment 15 Marcus Beyer 2011-09-29 10:38:33 UTC
Please make this happen in 2.3.x :)
Comment 16 olivier dufour 2011-12-06 18:20:20 UTC
Bertrand, please review that.
It is a good start for other bugs like add possibility to import podcast or multiple music library...
Comment 17 André Klapper 2020-03-17 08:21:37 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.