Bug 315050

Summary: Volume OSD breaks fullscreen display for flash videos (e.g. youtube)
Product: [Applications] kmix Reporter: sparhawk <kdebugs>
Component: On Hold / External issueAssignee: Christian Esken <esken>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 4.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sparhawk 2013-02-13 10:10:13 UTC
This bug has been reported previously as bug 217197 ( https://bugs.kde.org/show_bug.cgi?id=217197 ), but I'm not sure how to reopen it. The last comment there suggests that it was fixed in kmix 4.1, but I'm still seeing it in kmix 4.2, so I'm not sure if it's a reversion, or never fixed for my system. Like the last comment, I'm also using Ubuntu (now 12.10), Firefox (now 18.0.2) and KDE (now 4.9.2).

Bug details (quote from bug 217197):
When watching a full-screen flash movie (e.g at youtube.com) and using volume hotkey wheel, a progress bar is opened in the middle of screen, showing the actual volume level. This progress bar breaks full-screen video playback, but the video continues playing into browser window.

Reproducible: Always

Steps to Reproduce:
1. In Firefox, open youtube video in full-screen. (e.g. https://www.youtube.com/watch?v=qaKRHH6YgTY )
2. Press volume up/down media keys on the keyboard.
Actual Results:  
Video stop being fullscreen.

Expected Results:  
Video should remain fullscreen.
Comment 1 Christian Esken 2013-02-22 23:01:16 UTC
Thanks for the information.
Well, thats bad to hear.  I am lucky, it does not happen on my machine. In general it seems to happen by chance, depending on Window Manager, X Server, Type of fullscreen window, Keyboard handling, and so on and so forth. It is quite likely related to a not-fully specified Linux fullscreen mode.  I checked more, and see it all around, also for games. For example Half Life on Linux won't leave Fullscreen mode, while Trine2 on Linux leaves Fullscreen mode.
You can either file a bug report at the Flash developers, or wait until Linux has a proper fullscreen mode (might never happen). Unfortunately I do not see any possibilty for a change in KMix.
I'll put this bug on hold until furher notice. Should you have helpful news, please post it in this bug report.
Comment 2 sparhawk 2013-02-22 23:56:15 UTC
So are you saying that it works fine for you with the above youtube link? It actually is inconsistent for me too, depending on the specific youtube video. I think it's probably because I have html5 youtube enabled, but html5 only works on some videos. I'm not sure how to tell if the current video I'm watching is html5 or flash.

I don't have Unity or Gnome Shell installed any more, but I think I remember this bug not occurring on either of them. I suspect it's KDE-specific, rather than a problem with Flash per se. However, perhaps this bug shouldn't be filed against kmix, but against kwin or something else?
Comment 3 Christian Esken 2013-02-23 00:07:09 UTC
Didn't test the video. I was not aware about it could depends on the video. Some more insight. Thanks.
I will try when I am back at my home PC. Probably some are not actual flash videos (e.g. HTML5 video trial).
Comment 4 sparhawk 2013-02-23 03:34:25 UTC
Okay, thanks. In comparison, this video (for me) stays in fullscreen when I change the system volume. https://www.youtube.com/watch?v=VvTSl8vJNYU

Hopefully we'll see the same thing if we both are in the html5 trial.
Comment 5 Christian Esken 2013-02-23 11:45:52 UTC
I tested the video and pressed Volume up and down global shortcuts, in both Flash and HTML5 mode [1]:
 - Via Flash it does NOT leave Fullscreen mode
 - Via HTML5 it does leaves Fullscreen mode

Looks like it is currently OK for Flash, but fails for HTML5. At least it looks consistent.

[1] Enable/Disable HTML5 trial: http://www.youtube.com/html5
Comment 6 sparhawk 2013-02-24 09:07:15 UTC
Ah good find. I'll change my settings back to Flash for now, but should I file this bug against a different component?
Comment 7 sparhawk 2013-02-27 10:54:27 UTC
That's strange. Changing settings to all flash did fix it for the first link I posted, but now I've found another that doesn't work! I'm not sure why the inconsistency.
https://www.youtube.com/watch?v=JqVV1uURKYk
Comment 8 Myriam Schweingruber 2013-07-20 10:36:00 UTC
(In reply to comment #7)
> That's strange. Changing settings to all flash did fix it for the first link
> I posted, but now I've found another that doesn't work! I'm not sure why the
> inconsistency.
> https://www.youtube.com/watch?v=JqVV1uURKYk

Which exact KDE version? Is this still valid with KDE 4.10.5 or 4.11 RC1?
Comment 9 sparhawk 2013-07-20 12:58:39 UTC
KDE 4:4.10.5-0ubuntu0.1

It's somewhat fixed. That is, fullscreen display doesn't break any more, but there is some unexpected behaviour. If I enable thtml5 trial
[1] http://www.youtube.com/html5
[2] https://www.youtube.com/watch?v=VvTSl8vJNYU
[3] https://www.youtube.com/watch?v=qaKRHH6YgTY
Comment 10 sparhawk 2013-07-20 13:03:08 UTC
Sorry, I accidentally press send too early.

KDE 4:4.10.5-0ubuntu0.1

It's somewhat fixed. That is, fullscreen display doesn't break any more, but there is some unexpected behaviour. If I enable the html5 trial [1], then both [2] and [3] play fine now. If I press the volume up/down keys, fullscreen display doesn't break. I was going to say that in the case of [3], the "youtube.com is now fullscreen" warning was shown again whenever I pressed the volume keys, but now I try again (an hour later) and it seems fine. I'm not really sure what's going on there.

[1] http://www.youtube.com/html5
[2] https://www.youtube.com/watch?v=JqVV1uURKYk
[3] https://www.youtube.com/watch?v=qaKRHH6YgTY
Comment 11 Christian Esken 2013-12-18 14:35:39 UTC
Honestly, I think I cannot do too much here. The only thing i have to make sure is that the window type is correctly hinted. KMix's OSD is a Plasma::Dialog, and you can see the hinting at [2]. I guess the type hints should be good enough.

To make it clear: If the target application [1] reacts on window overlays with leaving fullscreen, it can decide to do so. Bugging the developer of the target application is the only viable alternative in my opinion. Thus I would like to close this ticket (type: RESOLVED:INVALID, as it can only be fixed in other applications). Please let me know if you want to go ahead differently.

[1] e.g. one of various Flash player versions or Youtube HTML5-Player or a Game or DVD player or <new-shiny-application> or ...

[2] Window Hints:
    KWindowSystem::setState(winId(), NET::KeepAbove);
    // There is no NET::OSD, so use an non-intrusive type: NET::Tooltip
    KWindowSystem::setType(winId(), NET::Tooltip);
    setAttribute(Qt::WA_X11NetWmWindowTypeToolTip, true);
Comment 12 Christian Esken 2014-01-05 17:45:56 UTC
Closing as proposed in last comment.
Comment 13 sparhawk 2014-01-11 12:30:57 UTC
Thanks Christian. I wasn't exactly sure what your penultimate comment meant, so I stayed silent. If I understand correctly, you are saying that you can't really fix it? Cheers.
Comment 14 Christian Esken 2014-04-04 12:55:35 UTC
To make things short and clear: No, I can not fix this, as the problem is in the application that goes out of fullscreen mode.
-------------------------

Explanation: Part of the problem is that there is no actual "fullscreen" mode on the Linux desktop - at least there is no specification I am aware off.Thus I am opening an "unintrusive" window (a tooltip) as OSD.
Comment 15 sparhawk 2014-04-05 01:55:55 UTC
Okay, thanks for the reply.