问题
I have the awesome config like this below:
{ rule = { instance = "plugin-container" },
properties = { floating = false },
callback = awful.titlebar.hide },
I don't want to have my Youtube fullscreen really playing fullscreen, but instead it is playing within the window size. If I want to have fullscreen, I could do with Win+F shortcut.
With the config above it doesn't work. Whenever I click fullscreen, it is really playing fullscreen.
I am used to be an Ion3 user and in Ion3 it just works. I am wondering whether it is possible for Awesome to do like that?
Many thanks.
回答1:
You can do that on the src
attribute of your iframe
by adding fs=0
parameter
<iframe w src="//www.youtube.com/embed/video_id?fs=0></iframe>
Parameters doc
回答2:
I know this is old but found this while asking a similar question just now. Not sure it helps you much since I think you were trying to do the same thing I am (make it a permanent feature by adding something to rc.lua), but if you click YouTube's fullscreen button or have VLC fullscreen itself or whatever and THEN Super+F you will get the effect you want. It will defullscreen into its previous window size but the client still thinks it is in fullscreen mode.
来源:https://stackoverflow.com/questions/32395774/how-to-restrict-youtube-player-fullscreen-still-within-the-window-i-dont-want