Linux Flash Player with 2 Monitors: always full-screen on primary monitor

7

My setup at home uses a laptop, with a larger external monitor in addition to the built-in LCD panel, which is primary. I can see the larger monitor from the rest of the room and use it as my TV, for playing DVDs and various types of web video. However, it isn't ideal for Flash video. For instance, if I watch a video from Hulu or any other Flash-based site, I can expand it to full-screen mode. However, no matter which monitor the browser window is on, the full-screen mode is always on the laptop LCD panel, which is both too small and not visible from most of the room. Does anyone know of a way to force the Flash video to play full-screen on the monitor I select instead of the primary?

My video chipset is NVidia, using kernel 2.6.31 (Ubuntu).

CarlF

Posted 2010-02-21T23:54:04.267

Reputation: 8 576

I just had a dumb realization: what if your larger monitor was the primary? Would that mess something else up? Because I am pretty sure that would make the flash movie fullscreen on the larger monitor. – Justin Smith – 2010-02-22T02:06:24.123

Doesn't seem to do anything--the full-screen mode always appears on the LCD panel, not the external monitor. – CarlF – 2010-02-22T03:22:04.503

I think it has to do with the Xinema extension and the way it extends the desktop for X windows. – pjz – 2010-08-18T16:19:12.737

Fixed in the current release of Ubuntu. I haven't investigated why it works now. – CarlF – 2010-08-19T04:26:57.993

Answers

4

Old question but this was the first result I got when searching for the same issue, so if anyone finds this, here's a workaround.

A lot of sites that show flash videos allow you got the video in a "popup", this is usually a special window that only contains a flash player that automatically scales to the size of the window.

Use the popup on the screen you want it maximized on and then use the fullscreen mode of the browser (F11 in Firefox and Chrome). This will use the regular flash container, but scaled to fill your screen.

Edit: If the site doesn't give you the option to use a popout, this addon for Firefox is useful: https://addons.mozilla.org/en-US/firefox/addon/flash-game-maximizer/

Raniz

Posted 2010-02-21T23:54:04.267

Reputation: 41

That addon does not help in this case. It seems to just activate the Flash Player's "fullscreen" mode, which still appears on the wrong monitor. And no site, literally, that I want to play video from has popout, except Hulu, which maximizes to the correct screen anyway. – CarlF – 2012-12-26T05:50:30.460

1

One option would be to use a tool like http://www.downloadhelper.net/ to get the video file from the flash object, then use a real movie player to display it properly - you will get better quality, smoother playback, and a real movie player is more likely to figure out how to display on the monitor you want.

A more hackish way is that you can actually navigate to /tmp/ and the flash video file will have a name like FlashxyZAbc, you can directly open that file with a movie player and play it (I have my file manager set up to launch my favorite movie player if I click on one of these files), without needing to install any addons or plugins.

Edit:

concerning the objections posted, mplayer and vlc can download or play rtsp streams, and the flash files in /tmp or the downloads from a downloader addon are playable as soon as the first few frames are downloaded.

Justin Smith

Posted 2010-02-21T23:54:04.267

Reputation: 3 746

Actually, no. Many videos are streamed using the RTSP protocol, which download helpers available on Linux cannot capture. Even in cases where this might work, e.g. frontline.org, there may be 10 chapters each of which I'd have to download separately, which would take the full hour of the program's playing time, only then to actually start watching, which is at best awkward. I do have a downloader but it isn't a solution to this problem. – CarlF – 2010-02-22T00:12:19.293

mplayer and vlc can both directly play, (or download, if you prefer) RTSP streams. And you don't need to finish a download in order to start playing it: the file is playable as soon as it starts downloading. I am aware that this is not an optimal solution, but flash is braindead, integrates very poorly with Linux, and I would be surprised if you ever get it to use your monitors properly. – Justin Smith – 2010-02-22T00:27:32.957

I have been using mplayer for many years. Problem is, there's no simple way to get the URLs. – CarlF – 2010-02-22T00:44:08.767

I usually rightclick in firefox and choose "copy link location". I am not so hung up on my approach that I cannot admit that it is inconvenient, and I will be excited to see a convenient solution for this predicament, but my experience leads me to believe using a real video player is the only good option here. You mention your display hardware, but flash is incapable of accessing any graphics acceleration, or even figuring out which monitor it should be using, which is why I recommend a real video player. – Justin Smith – 2010-02-22T00:49:34.493

on further consideration - if you mean rtsp used by a flash file, I sadly know of no way to extract that automatically (though I have an idea of where to start looking if I wanted to write a tool that did that, but...) – Justin Smith – 2010-02-22T01:29:57.897

Wow, this is a long string of comments. Yeah, RTSP used within a Flash SWF file. I do not know how to extract that. If you have any hints, that would be great. Mind, just being able to fullscreen the Flash movie would also be really useful. – CarlF – 2010-02-22T01:31:36.867

Heh, yeah, quite the discussion going on here. flasm is available from standard repos and I speculate a combination of http://flasm.sourceforge.net/ or http://code.google.com/p/flash-decompiler/ and grep will find an rtsp url in a scriptable way - do you have a link to a flash application that streams from rtsp?

– Justin Smith – 2010-02-22T01:44:50.333

The biggest RTSP streamer is undoubtedly hulu.com. – CarlF – 2010-02-22T03:20:03.960

I thought about flasm, but according to the link you give, it will never support Flash 9 or later (the ActionScript 3 virtual computer). I'm actually a former Flash developer and learning Flex, but I didn't want to have to decompile the stupid video players just to watch on my bigger monitor. Thanks, though. – CarlF – 2010-02-22T04:34:14.317

I just found out that http://gitorious.org/get-flash-videos-plugins/pages/Hulu get-flash-videos can download hulu movie files.

– Justin Smith – 2010-04-05T04:20:40.743

1

You mean this ? : http://my.opera.com/d.i.z./blog/2009/04/22/watch-fullscreen-flash-while-working-on-another-screen

Guess this is what you want.. but I'm not sure, worth a 'try-answer' :)

Apache

Posted 2010-02-21T23:54:04.267

Reputation: 14 755

Problem: I don't use Windows. – CarlF – 2010-11-11T18:02:09.127

@CarlF - http://deve.loping.net/projects/ignoflash/downloads/ There is a linux version available too.

– Apache – 2011-10-21T15:11:25.410