views:

284

answers:

3

I am using Qt to develop an application and inside we have access to select flash streaming videos like youtube. Is there a way to programmaticly full screen the flash application without requiring interaction from the user?

I am using a "QWebView" control.

+1  A: 

try calling showFullScreen for the window where your QWebView control is hosted.

void QWidget::showFullScreen ()
Shows the widget in full-screen mode.

Calling this function only affects windows.

To return from full-screen mode, call showNormal().

serge_gubenko
I don't think that will fullscreen the flash application though. Basically I want to fullscreen the youtube video not the browser control.
Nathan Adams
oh..now I see what you need. How to you load youtube content into your application? I guess you should have some javascript or\and actionscript code running to interact with the player component; like it's shown here http://code.google.com/apis/ajax/playground/?exp=youtube#chromeless_player. Now if you do running your code you can toggle full screen mode for the flash player using technique which is described here: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_03.html
serge_gubenko
A: 

You can always inject javascript from Qt into your QWebPage. If there is a javascript API for forcing the flash viewer to full screen, I do not know.

e8johan
A: 

I would say: locate the button for the fullscreen application on the page, and send a click using QEVent. Tricky, but might work.

If the button is inside the flash application, you will have difficulties to locate it but if you succeed, you can probably send the click to the flash application area.

Bluebird75