Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've managed to get YouTube Flash videos fullscreen by using two tips, but whenever I move the mouse pointer to a different screen (thereby changing the application focus) the fullscreen mode is canceled. Is there some way to ensure that only application focus changes on the same screen cancels the fullscreen mode?

share|improve this question
1  
No as this is a security feature of flash - see superuser.com/questions/16055/… for a possible workaround –  Ulrich Dangel Mar 16 '13 at 14:17
    
In the last few days, this appears to have stopped happening (disclaimer: I use dwm, not awesome). I use Flash 11.7.700.203 through Pepper. I just hope that it stays this way -- please let me know if the latest unstable version works for you. –  Chris Down May 27 '13 at 12:33

2 Answers 2

Adding the following rule to your rc.lua config file (in ~/.config/awesome/) should fix the problem:

{ rule = { instance = "plugin-container" },
  properties = { floating = true,
                 focus = yes } },

It keeps the focus on the flash plugin, so the full screen mode is never canceled (until you press Esc).

share|improve this answer
    
Doesn't work for me. –  l0b0 Dec 19 '13 at 23:08
    
Also use: christianiversen.dk/2013/07/… –  ehuang Nov 15 at 18:48

I don't have a solution to the flash problem, but here's a workaround. The following snippet maps to mod-v and starts the highlighted URL (the X PRIMARY selection) in VLC.

globalkeys = awful.util.table.join(globalkeys,
  awful.key({ modkey }, "v",
    function ()
      awful.util.spawn_with_shell('vlc $(xclip -o)')
    end),
)

This method can be combined with the cclive tool, which downloads videos from popular sites (also works by highlighting the URL0 and plays them back in VLC or a player of choice.

share|improve this answer
    
How is this a workaround? –  g33kz0r Mar 26 '13 at 4:32
    
@g33kz0r It's a workaround since it solves half of the problem: After focusing a different application on the other screen the video is still playing fullscreen. –  l0b0 Mar 27 '13 at 15:20
    
@l0b0 That's how VLC works and I like it that way. You press f to enter fullscreen and f again to exit fullscreen. Why should it leave fullscreen just because I focus another application? It could be an option, though. –  Marco Mar 27 '13 at 15:33
    
But this only applies to direct links to videos, right? I thought this question was about videos embedded in browsers a la YouTube? –  g33kz0r Mar 27 '13 at 16:21
    
@g33kz0r Did you try to open VLC, press ctrl-n and paste a YouTube URL? That's exactly what this snippet does. (The old version before the edit even skipped the copy-paste step and opened the current video in VLC immediately.) –  Marco Mar 27 '13 at 16:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.