Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to do the following things with VLC?

  • Make the playback window stay always on top
  • Make the playback window transparent when another window has the focus?

This would allow watching videos while doing other things such as checking emails since you could still access other windows (assuming the player is not maximized).

share|improve this question
    
I'm not sure how you would use the area under a window after making it 'always on top' without using hot-key-mouse combination clicks (ctrl+left, etc.). –  tyblu Jan 16 '12 at 1:13
2  
Not sure what OS you're talking about, but if you're using Ubuntu and have compiz installed, you can easily change the transparency of any window. Personally, I'd have VLC playing in the background and make any windows sitting on top of it transparent so that I can use them but still see the video. (Ok, on second thoughts, I'd use a second monitor....) –  Amos M. Carpenter Jan 16 '12 at 1:30
    
A solution that sticks the mouse "behind" the video output has not yet been found. Maybe something like a transparent screen overlay detached from the VLC window might achieve this somehow... –  Tobias Kienzler Sep 21 '12 at 9:20
    
...although as @aaamos stated, an alternative might be making every other window transparent. But that would still require some "keep VLC right behind the current window" mechanism. Another nice feature would be the window only turning transparent when the mouse approaches it –  Tobias Kienzler Sep 21 '12 at 9:41

3 Answers 3

up vote 11 down vote accepted

To make the playback window always on top select Video -> Always On Top from the menu. (Mac Video -> "Float on Top")

I don't see a way to change the transparency when VLC goes out of focus without using a window manager that has this capability. You can change the transparency in VLC manually though.

To make the playback window transparent:

  • Tools -> Preferences
  • Show All Settings -> Click the plus next to Interface -> Main Interface
  • Change the Interface Module to Qt Interface
  • Click the plus next to Main Interface -> Qt
  • Change the Window Opacity to the desired amount
  • Close and reopen VLC for the change to take effect
share|improve this answer

I've adapted an AutoHotKey script from here which will do what you ask (on Windows - I don't know if there's an AutoHotKey for Linux).

When the script is run, it finds a window with "VLC media player" in the title and makes it 60% transparent and 'unclickable'. To exit the script and reactivate VLC, right click the green H in the taskbar and choose Exit.

If you trust me, a (decompilable) compiled version of this which sets one running VLC instance to 60% transparency and unclickable is here: https://www.dropbox.com/s/to4wrlmnuym9kjb/TransparentVLC.exe

If you don't trust me, want to adapt it for use with Media Player Classic (it's just better =), or just want to learn, install AutoHotKey and run this script: https://www.dropbox.com/s/exj00fpssx761lc/TransparentVLC.ahk

If my links are broken, the AHK code follows:

/*
WinSet_Click_Through - Makes a window unclickable. Written by Wicked & SKAN.
I - ID of the window to set as unclickable.
T - The transparency to set the window. Leaving it blank will set it to 254. It can also be set On or Off. Any numbers lower then 0 or greater then 254 will simply be changed to 254.
If the window ID doesn't exist, it returns 0.
*/

WinSet_Click_Through(I, T="254") {
   IfWinExist, % "ahk_id " I
   {
      If (T == "Off")
      {
         WinSet, AlwaysOnTop, Off, % "ahk_id " I
         WinSet, Transparent, Off, % "ahk_id " I
         WinSet, ExStyle, -0x20, % "ahk_id " I
      }
      Else
      {
         WinSet, AlwaysOnTop, On, % "ahk_id " I
         If(T < 0 || T > 254 || T == "On")
            T := 254
         WinSet, Transparent, % T, % "ahk_id " I
         WinSet, ExStyle, +0x20, % "ahk_id " I
      }
   }
   Else
      Return 0
}
#SingleInstance force
#Persistent
;app code starts here
;get window ID for a VLC instance
ID := WinExist("VLC media player")

;set it to 60% transparent and unclickable
WinSet_Click_Through(ID, 0.6 * 255)

;wait until the user quits, then show window again
OnExit, AppEnd
Return

AppEnd:
;set it back to clickable
WinSet_Click_Through(ID, "Off")
ExitApp
share|improve this answer
    
Looks great! I haven't found the time to test it yet, but I'll just trust you did, for now :-7 –  Tobias Kienzler Sep 27 '12 at 10:08

One or more of the Skrommel applications might do the job :

WinWarden - Automatically control how to display a window.
TransOther - Make all windows but the active one transparent.
OnTop - Puts a window on top of all others.

Another possibility is the free Eusing Auto Window Manager which can set VLC to always on-top and transparent.

share|improve this answer

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.