You are not logged in.

#1 2013-06-14 21:23:13

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Firefox flash plugin- full screen

Hello,

I'm using 2 monitors, if i make full screen on youtube on one of my monitors and click mouse on the 2nd one fullscreen is closing, how i can fix it ? i need to have fullscreen on one of my monitor and work on nextone.

Offline

#2 2013-06-14 21:38:01

progandy
Member
Registered: 2012-05-17
Posts: 5,283

Re: Firefox flash plugin- full screen

You might want to set FF to fullscreen and try Flash Game Maximizer
https://addons.mozilla.org/en-US/firefo … maximizer/


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2013-06-14 21:46:24

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

Its not wkoring, it resize my windows to center of my screen - http://img833.imageshack.us/img833/3204/kyet.jpg

and still 'fullscreen' is closing

Last edited by McQueenNewbie (2013-06-14 21:46:48)

Offline

#4 2013-06-15 07:38:09

pks
Member
From: Germany
Registered: 2012-07-20
Posts: 110

Re: Firefox flash plugin- full screen

To fix it I used the AUR fullscreenhack package. It installs a library that you have to manually load with LD_PRELOAD:

LD_PRELOAD=/path/to/libfshack-npapi.so /usr/bin/firefox

You may just create a simple script that calls Firefox like that and put it into your path. It fixed all full screen flash player issues I've had without it before.

Last edited by pks (2013-06-15 07:38:39)

Offline

#5 2013-06-15 08:21:18

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

LD_PRELOAD=/path/to/libfshack-npapi.so /usr/bin/firefox

ERROR: ld.so: object '/path/to/libfshack-npapi.so' from LD_PRELOAD cannot be preloaded: ignored.

(process:1223): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
No protocol specified
No protocol specified
Error: cannot open display: :0

i installed fullscreenhack package but it change nothing sad

Offline

#6 2013-06-15 08:23:39

pks
Member
From: Germany
Registered: 2012-07-20
Posts: 110

Re: Firefox flash plugin- full screen

You have to insert the correct path to libfshack-npapi.so. I guess it will reside in /usr/lib, which would change it to the following command:

LD_PRELOAD=/usr/lib/libfshack-npapi.so /usr/bin/firefox

Offline

#7 2013-06-15 08:27:19

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

That path is correct, file is in /usr/lib but still got

fullscreen hack loaded... running under flash = 0

(process:893): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
No protocol specified
No protocol specified
Error: cannot open display: :0

Offline

#8 2013-06-15 08:33:31

pks
Member
From: Germany
Registered: 2012-07-20
Posts: 110

Re: Firefox flash plugin- full screen

The GLib warning can safely be ignored. The second error 'Error: cannot open display: :0' doesn't look well, though. I guess I'm safe to assume you're running the command from within a X terminal?

I just saw that the hack is only intended to fix issues with Nvidia cards. I've got an Intel graphics chip but it still fixes the click-close issue and problems with size. But, well...

Offline

#9 2013-06-15 09:00:56

progandy
Member
Registered: 2012-05-17
Posts: 5,283

Re: Firefox flash plugin- full screen

If you want to use it only for YT videos, I suggest you try something different. Get the link and display it in a mediaplayer. I am doing it this way:
- install FlashGot
- add your mediaplayer as download manager (I use SMPlayer)
- set the manager for "flashgot media" to your player
- open YT video, wait for it to play and pause it
- use the context menu of the media icon in the addon/statusbar to open the video.
Or use a Flash downloader addon.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2013-06-15 09:11:10

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

pks wrote:

The GLib warning can safely be ignored. The second error 'Error: cannot open display: :0' doesn't look well, though. I guess I'm safe to assume you're running the command from within a X terminal?

I just saw that the hack is only intended to fix issues with Nvidia cards. I've got an Intel graphics chip but it still fixes the click-close issue and problems with size. But, well...

corret i'm using it in x terminal

progandy wrote:

If you want to use it only for YT videos, I suggest you try something different. Get the link and display it in a mediaplayer. I am doing it this way:
- install FlashGot
- add your mediaplayer as download manager (I use SMPlayer)
- set the manager for "flashgot media" to your player
- open YT video, wait for it to play and pause it
- use the context menu of the media icon in the addon/statusbar to open the video.
Or use a Flash downloader addon.

i need it not only for youtube, and i dont wanna download all files to watch it (i watch over 1k movies on yt per day, its part of my work).

Last edited by McQueenNewbie (2013-06-15 09:11:57)

Offline

#11 2013-06-15 10:21:28

stipo
Member
Registered: 2013-06-15
Posts: 8

Re: Firefox flash plugin- full screen

Look at step 2 in "Get Flash videos to remain full screen when working (clicking) in the other desktop" in the following link: http://www.webupd8.org/2012/10/ubuntu-m … creen.html

It's a workaround for Ubuntu but I think it also works on Arch.

Offline

#12 2013-06-15 10:27:06

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Firefox flash plugin- full screen

mplayer "path-to-url" #mplayer2
mpv "path-to-url"

Custom hint mode for Pentadactyl:

" .pentadactylrc
" Launch current URL as an argument
nmap <S-q> -s -js commands.execute('!mpv "' + content.location.href.replace(/([$`"\\])/g, "\\$1") + '" &> /dev/null &');

" Custom hint
js <<EOF
hints.addMode("q", "Launch video from hint", function (elem, loc)
              commands.execute('!mpv "' + loc.replace(/([$`"\\])/g, "\\$1")
              + '" &> /dev/null &'));
EOF

Alternatively you could use quvi which can automatically set the preferred quality and window title. I.e.

# ~/.quvirc
exec = "mpv --quiet --cache 4096 --title=%t %u"
format = fmt45_720p,fmt44_480p,fmt35_480p,fmt101_360p,fmt100_360p,fmt43_360p,fmt18_360p,fmt34_360p,fmt83_240p,fmt36_240p,fmt5_240p

Last edited by Earnestly (2013-06-15 10:34:34)

Offline

#13 2013-06-15 10:33:24

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

stipo wrote:

Look at step 2 in "Get Flash videos to remain full screen when working (clicking) in the other desktop" in the following link: http://www.webupd8.org/2012/10/ubuntu-m … creen.html

It's a workaround for Ubuntu but I think it also works on Arch.

well i think its gonna work, but how i can run ghex as root ? i cant save changes from my user login ?


gksu ghex /path/to/libflashplayer.so

gksu ghex /usr/lib/mozilla/plugins/libflashplayer.so
No protocol specified

(gksu:1632): Gtk-WARNING **: cannot open display: :0
Kaustic wrote:
mplayer "path-to-url" #mplayer2
mpv "path-to-url"

Custom hint mode for Pentadactyl:

" .pentadactylrc
js <<EOF
hints.addMode("q", "Launch video from hint", function (elem, loc)
              commands.execute('!mpv "' + loc.replace(/([$`"\\])/g, "\\$1")
              + '" &> /dev/null &'));
EOF

i think i'm too big newbie to understand what do you mean ? i'm very glad you want to help me but could you explain what to do ?

Last edited by McQueenNewbie (2013-06-15 10:34:06)

Offline

#14 2013-06-15 10:36:28

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Firefox flash plugin- full screen

McQueenNewbie wrote:

i think i'm too big newbie to understand what do you mean ? i'm very glad you want to help me but could you explain what to do ?

http://5digits.org/pentadactyl/ is a plugin for Firefox which adds vim-like interaction and mouse-less browsing. I'm sure the same can be done for vimperator, dwb and vimprobable but I'm unsure how.

The entire rational is to bypass flash entirely where possible.

All of that regex is simply used to clean up the url and escape any malicious content. E.g. "http://some.malicious.url/?=$(rm -rf ~)&potatoes" becomes harmless.

Last edited by Earnestly (2013-06-15 10:39:29)

Offline

#15 2013-06-15 10:44:47

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

I was trying to install it but pentadactyl cant be used with Fiefox 21.0

Offline

#16 2013-06-15 10:50:32

stipo
Member
Registered: 2013-06-15
Posts: 8

Re: Firefox flash plugin- full screen

McQueenNewbie wrote:
stipo wrote:

Look at step 2 in "Get Flash videos to remain full screen when working (clicking) in the other desktop" in the following link: http://www.webupd8.org/2012/10/ubuntu-m … creen.html

It's a workaround for Ubuntu but I think it also works on Arch.

well i think its gonna work, but how i can run ghex as root ? i cant save changes from my user login ?


gksu ghex /path/to/libflashplayer.so

gksu ghex /usr/lib/mozilla/plugins/libflashplayer.so
No protocol specified

(gksu:1632): Gtk-WARNING **: cannot open display: :0

Have you instaled sudo?

Edit: You could also use "su root" to run commands as root.

Last edited by stipo (2013-06-15 10:53:10)

Offline

#17 2013-06-15 10:55:58

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

yes i got sudo

but

[root@Alice luis]# gksudo ghex /usr/lib/mozilla/plugins/libflashplayer.so
No protocol specified

(gksudo:2224): Gtk-WARNING **: cannot open display: :0
[root@Alice luis]# 

i dont know how to run it as root

Offline

#18 2013-06-15 10:56:03

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Firefox flash plugin- full screen

McQueenNewbie wrote:

I was trying to install it but pentadactyl cant be used with Fiefox 21.0

Yes it can, simply get the nightly or clone the repo and build it, e.g.

hg clone https://code.google.com/p/dactyl/
cd dactyl
make pentadactyl xpi
firefox downloads/pentadactyl-1.1pre.xpi

But, it may not be for you, not yet perhaps. Good luck anyway.

Offline

#19 2013-06-15 11:01:17

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

Kaustic wrote:
McQueenNewbie wrote:

I was trying to install it but pentadactyl cant be used with Fiefox 21.0

Yes it can, simply get the nightly or clone the repo and build it, e.g.

hg clone https://code.google.com/p/dactyl/
cd dactyl
make pentadactyl xpi
firefox downloads/pentadactyl-1.1pre.xpi

But, it may not be for you, not yet perhaps. Good luck anyway.

wel its look like, i just started using linux and learning it, i will try to understand what is that

/add

well i installed it (it was easy ^_^), but still it didnt fix my problem its the same problem but now my hotkeys like ctr+a didnt work

Last edited by McQueenNewbie (2013-06-15 11:05:23)

Offline

#20 2013-06-15 11:50:15

stipo
Member
Registered: 2013-06-15
Posts: 8

Re: Firefox flash plugin- full screen

McQueenNewbie wrote:

yes i got sudo

but

[root@Alice luis]# gksudo ghex /usr/lib/mozilla/plugins/libflashplayer.so
No protocol specified

(gksudo:2224): Gtk-WARNING **: cannot open display: :0
[root@Alice luis]# 

i dont know how to run it as root

Have you configured sudo with visudo?

You need to add:

your_username ALL=(ALL) ALL

Offline

#21 2013-06-15 11:52:20

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: Firefox flash plugin- full screen

The point was to bypass your problem, not fix it tongue

Pentadactyl will take over many of your keys, as I said, it's supposed to mimic vim. In the case of (C-a) it will increment numbers in TEXT EDIT mode (C-t in INSERT MODE) while C-x will decrement.

Offline

#22 2013-06-15 12:14:15

McQueenNewbie
Member
Registered: 2013-05-26
Posts: 56

Re: Firefox flash plugin- full screen

stipo wrote:
McQueenNewbie wrote:

yes i got sudo

but

[root@Alice luis]# gksudo ghex /usr/lib/mozilla/plugins/libflashplayer.so
No protocol specified

(gksudo:2224): Gtk-WARNING **: cannot open display: :0
[root@Alice luis]# 

i dont know how to run it as root

Have you configured sudo with visudo?

You need to add:

your_username ALL=(ALL) ALL

i add my username to visudo

so i'm tring sudo ghex in terminal and its invalid option

Offline

#23 2013-06-15 13:08:29

stipo
Member
Registered: 2013-06-15
Posts: 8

Re: Firefox flash plugin- full screen

Could you post your /etc/sudoers?

Offline

#24 2013-06-15 13:14:56

progandy
Member
Registered: 2012-05-17
Posts: 5,283

Re: Firefox flash plugin- full screen

McQueenNewbie wrote:

i need it not only for youtube, and i dont wanna download all files to watch it (i watch over 1k movies on yt per day, its part of my work).

My FlashGot solution is not downloading the video. I use FlashGot to extract the video url, and let it open smplayer to stream it.

Another very good solution is popvideo. It puts the flash player into a new window which you can set to fullscreen using your window manager (Alt-F11 for me). IT is not exactly the same (the buttons won't be hidden, but I don't think that is a real problem) https://addons.mozilla.org/de/firefox/addon/popvideo/

Last edited by progandy (2013-06-15 13:25:35)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#25 2013-06-15 13:58:14

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Firefox flash plugin- full screen

Devilspie is another potential solution (haven't tried it with dual monitors) . You would have to adjust the geometry string depending on your resolution:

 #  ~/.devilspie/flash-fullscreen-firefox.ds
(if
    (is (application_name) "npviewer.bin")
    (begin
       (focus)
       (above)
       (geometry "1360x768+1920+0")
    )
)

EDIT: actually, its not quite that simple I guess, because of input grabbing.. maybe you have to experiment with something like this:

(if
    (is (application_name) "npviewer.bin")
    (begin
        (stick)
        (wintype "dock")
        (geometry "1360x768+1920+0")
    )
)

Last edited by hokasch (2013-06-15 14:11:12)

Offline

Board footer

Powered by FluxBB