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 545597 - Mini Video Mode - watch a video while doing something else
Mini Video Mode - watch a video while doing something else
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: User Interface
git master
Other All
: Normal enhancement
: 1.6
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2008-07-30 22:05 UTC by Ivan Zlatev
Modified: 2020-03-17 08:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Mini Video Mode (170.18 KB, image/png)
2008-07-30 22:07 UTC, Ivan Zlatev
  Details
Patch that implements the mini/compact video mode in NowPlaying (9.76 KB, patch)
2008-08-17 14:44 UTC, Ivan Zlatev
needs-work Details | Review
Rebased against SVN HEAD (9.65 KB, patch)
2008-10-27 18:43 UTC, Ivan Zlatev
none Details | Review
Patch rev 3 - svn head + changelog (10.41 KB, patch)
2008-10-27 18:50 UTC, Ivan Zlatev
needs-work Details | Review

Description Ivan Zlatev 2008-07-30 22:05:34 UTC
Please consider addign a Mini Video Mode like in Totem (activated with "H").

In this mini video mode only the a window with the video is displayed to allow setting it Always on Top and watching a video while doing something else.
Comment 1 Ivan Zlatev 2008-07-30 22:07:17 UTC
Created attachment 115585 [details]
Mini Video Mode
Comment 2 Andrew Conkling 2008-07-31 03:47:41 UTC
Maybe this could be something added in the Mini Mode extension.
Comment 3 Ivan Zlatev 2008-08-10 21:29:55 UTC
Can I have this bug assigned to me, please as I am working on getting the compact mode in the NowPlaying extension as discussed on the mailing list.
Comment 4 Ivan Zlatev 2008-08-17 14:44:42 UTC
Created attachment 116796 [details] [review]
Patch that implements the mini/compact video mode in NowPlaying

As mailed to the mailing list:

The following patch series for review adds a compact video playback mode to the NowPlaying extension. This mode is basically a plain window with only the video inside. This allows watching a podcast/show while doing something else at the same time. Such a mode is already present in Totem and I have personally found it very handy.

The user visibly changes are a "Compact" toolbar button next to the "Fullscreen" one and an additional "h/H" shortcut key to switch back to normal mode.

Please review, thanks.
Comment 5 Andrew Conkling 2008-08-17 19:29:42 UTC
Patch does not apply. How did you produce it?

Also, bug assigned to you; could you not have chosen " Accept bug (confirm bug, and change status to ASSIGNED)"? (Not sure if that shows up for you or not.)
Comment 6 Ivan Zlatev 2008-08-17 20:01:46 UTC
(In reply to comment #5)
> Patch does not apply. How did you produce it?
> 

Does not apply because you are applying it wrong. On a fresh checkout:

[~/src/svn/banshee]$ patch -p2 < compact-mode-full.patch
patching file src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenAdapter.cs
patching file src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs
patching file src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingInterface.cs
patching file src/Extensions/Banshee.NowPlaying/Resources/ActiveSourceUI.xml


> Also, bug assigned to you; could you not have chosen " Accept bug (confirm bug,
> and change status to ASSIGNED)"? (Not sure if that shows up for you or not.)
> 

For some reason the "Bug Status Change" part was not visible to me. Either that or I was blind.
Comment 7 Andrew Conkling 2008-08-17 23:15:34 UTC
Got the patch, didn't realize it was only the first two lines that needed to be trimmed. Thanks for the heads-up.

The patch works as designed, but I don't know if it's the best way to go about it:
a) I'd think this should be integrated with the Mini Mode extension.
b) Once it's in compact mode, it's not entirely discoverable that you need to click the notification area icon or close the video window or press Escape to re-enable normal mode.

We'll see what the developers think.
Comment 8 Ivan Zlatev 2008-08-18 12:17:58 UTC
(In reply to comment #7)
> The patch works as designed, but I don't know if it's the best way to go about
> it:
> a) I'd think this should be integrated with the Mini Mode extension.

There is no way to currently do that. Check http://mail.gnome.org/archives/banshee-list/2008-August/msg00014.html for the details.


Comment 9 Andrew Conkling 2008-08-18 13:15:31 UTC
(In reply to comment #8)
> There is no way to currently do that. Check
> http://mail.gnome.org/archives/banshee-list/2008-August/msg00014.html for the
> details.

Ah, apologies.
Comment 10 Bertrand Lorentz 2008-08-24 15:58:29 UTC
Thanks for the patch Ivan !

A few suggestions for improvement :
1. The "H" shortcut key only allows to go from normal to compact. It should probably work both ways, like "F" does for the fullscreen mode.

2. You could add an entry in the "View" menu, like the one for Fullscreen.

3. A context menu (right click) on the compact window would be nice, in particular to go back to the normal mode. Totem has one.
Comment 11 Aaron Bockover 2008-10-25 00:00:24 UTC
This doesn't apply anymore - any chance you could update it for trunk again Ivan? I'm very interested in getting this in sooner than later due to nasty implications of some window managers affecting the default now playing video. 

This is nice to have from an experience point of view but also it's a decent work around to some bugs in other areas of the non-Banshee stack.
Comment 12 Ivan Zlatev 2008-10-27 18:43:01 UTC
Created attachment 121450 [details] [review]
Rebased against SVN HEAD

I have rebased my patch against SVN HEAD as requested.
Comment 13 Ivan Zlatev 2008-10-27 18:43:37 UTC
Forgot to remove the NEEDINFO flag
Comment 14 Ivan Zlatev 2008-10-27 18:50:11 UTC
Created attachment 121451 [details] [review]
Patch rev 3 - svn head + changelog

I have revised the patch with a ChangeLog entry.
Comment 15 Gabriel Burt 2009-01-14 00:52:50 UTC
Hey Ivan,

This works fairly well.  What's the reasoning behind not showing the controls in compact mode?  I think it'd be good to have the controls.

Do you think it could be useful to keep the Banshee primary window visible, and let the user hide it themselves it they want?

One issue is the sizing of the compact window.  The first time I pressed the "Compact" button the resulting window was quite small (208x228 or so) - can we default it to the size of the playing video (and/or remember the size/position by using the PersistentWindowController class)?  In my case, the video resolution was 480x480.

I agree w/ Bertrand's first two suggestions, and the third would be nice, but it'd be nice for fullscreen too - should be filed as a separate bug/request I think.

Thanks!
Comment 16 Ivan Zlatev 2009-02-24 23:50:10 UTC
It's been a while since I've done this patch, but here we go off the top of my head:

(In reply to comment #15)
> Hey Ivan,
> 
> This works fairly well.  What's the reasoning behind not showing the controls
> in compact mode?  I think it'd be good to have the controls.
> 

Yes, their layout is buggy on smaller sizes. Also no good way to handle "leave compact mode" instead of leave full screen.

> Do you think it could be useful to keep the Banshee primary window visible, and
> let the user hide it themselves it they want?
> 
> One issue is the sizing of the compact window.  The first time I pressed the
> "Compact" button the resulting window was quite small (208x228 or so) - can we
> default it to the size of the playing video (and/or remember the size/position
> by using the PersistentWindowController class)?  In my case, the video
> resolution was 480x480.
> 

There is no video information exposed right now (such as the resolution)
 as far as I could tell from the code. From what I saw the PersistentWindowController is very buggy and relies on some magic to work and also relies on some weird timeouts. Also even when I tweaked it a bit the current code doesn't really support the paradigm of compact window and it's position/size saving (in nowplaying).

> I agree w/ Bertrand's first two suggestions, and the third would be nice, but
> it'd be nice for fullscreen too - should be filed as a separate bug/request I
> think.
> 

As for Bertrand's suggestions - they are sound. However:

> 1. The "H" shortcut key only allows to go from normal to compact. It should
> probably work both ways, like "F" does for the fullscreen mode.

I couldn't see a way to define a global shortcut. The fullscreen thing wasn't actually shortcut it was some public eventhandler property exposed in some class that one can replace with a custom one.

> 2. You could add an entry in the "View" menu, like the one for Fullscreen.

I couldn't see a way to force ordering in the View Menu. Such as how to put the View Compact under View Fullscreen.


Based on your feature request ideally the implementation should probably create some sort of an ExternalVideoWindow class with 2 subclasses CompactVideoWindow and FullscreenVideoWindow and the code in nowplaying should get a nice bit of refactoring to make that work. The problem is that I don't have that time available on my hands to work on that right now.
Comment 17 Gabriel Burt 2009-10-27 20:16:09 UTC
Bulk changing the assignee to banshee-maint@gnome.bugs to make it easier for people to get updated on all banshee bugs by following that address.  It's usually quite apparent who is working on a given bug by the comments and/or patches attached.
Comment 18 André Klapper 2020-03-17 08:26:12 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.