How to switch fullscreen mode with normal mode in OSMF with mediacontainer and mediaplayer?

i use OSMF to make a video player ,use the mediacontainer and mediaplayer ,all works right but to switch from normal to fullscreen mode ,i don't know how ?
because my videoplayer can be resized with some ratio ect 50%.
anyone do something similar to this? any help?
thanks very much!

I did this:
public function toggleFullScreen( event:Event=null ):void
if( this.stage.displayState == StageDisplayState.NORMAL )
// set full screen display
this.stage.scaleMode = StageScaleMode.NO_SCALE;
$playerInstance.width = $stage.fullScreenWidth;
$playerInstance.height = $stage.fullScreenHeight;
bg.height = $stage.fullScreenHeight;
$playerInstance.addChild(controlBar2);
LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.ZOOM;
var resultRect:Rectangle = new Rectangle(0, 0, $stage.fullScreenWidth, $stage.fullScreenHeight);
stage.fullScreenSourceRect = resultRect;
this.stage.displayState = StageDisplayState.FULL_SCREEN;
else
$playerInstance.width = 600;
$playerInstance.height = 400;
$playerInstance.mediaContainer.width = 600;
$playerInstance.mediaContainer.height = 400;
LayoutMetadata($playerInstance.media.getMetadata(LayoutMetadata.LAYOUT_NAMESPACE)).scaleMo de= ScaleMode.LETTERBOX;
bg.height = 400;
// set normal display
stage.fullScreenSourceRect = null;
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.displayState = StageDisplayState.NORMAL;

Similar Messages

  • My iPhone seems to be in visual impaired mode, and the touch screen no longer works.  How do I get back to normal mode?

    My iPhone 4S seems to be in visual impaired mode, and the touch screen no longer works.  I have tried rebooting the phone without success.  How can I get back to normal mode?

    I solved my own problem by clicking the home button 3 times.

  • Firefox abruptly switched into safe mode. How do it return it to normal mode?

    I use Firefox with Google Search as my home page. Today (12/3/10) I closed the page and was informed that Firefox was not running in safe mode and all my preferences--bookmarks etc.--were not available. I managed to restore bookmarks and other features by following directions on a screen that gave me those choices. However the Firefox
    icon has disappeared from my opening screen and I cannot figure out how to restore it. Firefox is still listed on my menu as in safe mode. If I bring up the home page and try to right click to create a new icon, I get a screen that tells me how to restore (or delete) those preferences I have already restored.

    Thanks for the suggestions, but I could not make them work. The easiest route for me turned out to be uninstalling the program, keeping my preferences intact and reinstalling the browser. Seems to work fine now. Icon was restored and when I deleted the "Firefox (safe mode)" from the menu, it was instantly replaced by the name of the browser in normal mode.
    I still don't know why or how this happened, but the solution above seems to be satisfactory and it didn't take too long.

  • I have a VI with menu barattached i want to remove the menu bar.I am able to remove the menu bar in run continuously mode.but not in normal mode how do i do it in normal mode

    I have a VI with menu bar.I am able to remove menu bar in continuous mode by setting window appearence.But i want the menu bar to be removed at normal mode also.How do i do it

    You can trun off the menu while the VI is running by going into the VI properties (right click on the VI icon and select 'Properties). Then from the Catagory selestion box, select Window Appearance, click the Customize button, then uncheck the Show Menu Bar check box and hit OK twice. That shold do it.
    Note that this will only turn off the menu while the VI is running. The standard menu will always be showing when the VI is not running.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Switch from safe mode to normal mode problem

    my comuter is stuck in safe mode , when start up i press f8 and try starting in normal mode but it still goes to safe mode . how can i fix that?

    Hi,
    First, please let me know if there is any program or updates installed before the issue occurs.
    You may take the following steps to test this issue:
    1. Boot the system using the “Last known good configuration”: 
    1). Turn on your machine
    2). Immediately begin tapping the F8 key repeatedly (If you get to the Windows startup screen start over)
    3). When the Startup Options menu comes up select “Last known good configuration”
    4). Let the computer attempt to boot into Windows
    If this successfully gets you booted into Vista you should be ok. Your system will function as it did before. If this does not get you booted into Vista
    normally we can try running the System File Scanner.
    2. System File Scanner
    1). Turn on your machine
    2). Immediately begin tapping the F8 key repeatedly (If you get to the Windows startup screen start over)
    3). When the Startup Options menu comes up select “Safe Mode with Command Prompt”
    4). At the command prompt type this command sfc /scannow
    5). Then press enter
    This utility will look for damaged or missing system files and attempt to correct the problem. When it finishes, it will tell you the results (example:
    SFC found and fixed problems). Restart your system normally. If you boot successfully into Vista, the problem should be solved. Let us know if either of these steps solve the problem.
    Regards,
    Sabrina
    This posting is provided "AS IS" with no warranties or guarantees, and confers no rights. |Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
    This can be beneficial to other community members reading the thread.

  • HT201263 how to exit from recovery mode to normal mode

    i have trouble with my ipnone 4S 5.1.1....
    recovery mode dan can't to normal mode...it always blang...when  i was restore from alway shown error 3491 or restor dan upgrading...
    Thank you
    max
    how to fixing error 3194?

    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • TS3694 how to exit from recovery mode to normal mode

    i have trouble with my ipnone 4S 5.1.1....
    recovery mode dan can't to normal mode...it always blang...when  i was restore from alway shown error 3491 or restor dan upgrading...
    Thank you
    max
    how to fixing error 3194?

    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • How do I get back to normal mode from safe mode and enable add ons again?

    I switched to safe mode to disable a few add-ons, but now I want to go back to normal mode. How do I do that?

    Firefox will open normally as long as you do not click the Safe mode link in the Start menu.
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    >In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • HT201274 how to exit from recovery mode to normal mode

    i have trouble with my ipnone 4S 5.1.1....
    recovery mode dan can't to normal mode...it always blang...when  i was restore from alway shown error 3491 or restor dan upgrading...
    Thank you
    max

    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Update to the latest version of iTunes.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • Document always opens in Preview mode, prefer Normal mode

    Documents always open in Preview mode, while I'd prefer the Normal mode. I tried setting the mode to Normal and saving the document, but next time I open it it again opens up in Preview mode. Can I change this somewhere so it defaults to Normal mode?
    Thanks for your help or suggestions.

    The preview that was used when the file was saved is saved with the
    file. If you save it in preview mode, it will open that way.
    If that's not the case, you may have a slight corruption in your
    preferences. Try trashing them if this bothers you.
    Bob

  • Low ringtone volume if change vibrate mode to normal mode after missing incomming call

    Initial condition: Sony Xperia Z1, C6903 (S/W: 14.5.A.0.270). Phone was flashed with all wipes Steps to reproduce:1) Goto phone settings and be ensure that:Vibrate mode with sound - ONIncreasing ring - ONSound start - ON Other sounds:Key sound - ONScreen lock sound - ONSound of tap the screen - ONvibro feedback - ONIn keyboard: The vibration when you press - ON2) Ringtone volume - 100% (Normal mode)3) Take incoming calls from any phone4) Check that volume of incoming call was 100%5) Change sound mode to vibrate only6) Take incoming calls from any phone to Z1 and do no answer (Miss the call)7) Change mode back to normal8) Take incoming calls from any phone9) Check that volume of incoming call was about 10-15%. It also can view in sound settings - ISSUE. Please give your feedback about this ISSUE! Issue is also reproduced on 14.5.A.0.242.

    Increasing ring is the settings which affects on this ISSUE! If Increasing ring = OFF, all OK, if Increasing ring = ON - ISSUE! Also after issue it becomes much quieter sound pressing the three lower buttons even if you increase the ringer volume.To restore the volume keystrokes you must change mode from normal to vibrate and back again (provided that there were no calls).

  • I have installed 10.8.5 and now am unable to login....neither safe mode or normal mode

    Hi
    I have updated 10.8.5 and my laptop restarted - then I get stuck in the login screen.
    I could see my account icon and sleep/restart/shut down buttons on the screen but nothing works.
    What I could do is to press the power key and force it shut down.
    Even booting in safe mode does not help.
    The screen remains no responses.
    Is there anyone experieced similiar situation?

    I am trying to install "WEATHERBUG"  Weatherbug was allowed to run just fine on earlier versions of MOUNTAIN LION.  10.4 and later won't allow this 3rd party app to download.
    WeatherBug Alert for Mac helps you plan your day with confidence by putting severe weather alerts and your live temperature on your desktop.
    Features
    The most reliable weather information found anywhere.
    Severe weather alerts to help protect you and your family.
    One click access to radar, forecasts and more on WeatherBug.com
    Installation Intructions
    Download zip file.
    Copy file to Applications folder.
    Run the app.
    System Requirements
    Mac OS X version 10.4 or later
    Internet connection
    Support
    For support or to provide feedback on WeatherBug Alert for Mac, please visit the WeatherBug Alert Forum
    Click here for the OS X 10.3.9 Compatible Version
    FREE DOWNLOAD 
    WeatherBug Alert for Mac helps you plan your day with confidence by putting severe weather alerts and your live temperature on your desktop.
    Features
    The most reliable weather information found anywhere.
    Severe weather alerts to help protect you and your family.
    One click access to radar, forecasts and more on WeatherBug.com
    Installation Intructions
    Download zip file.
    Copy file to Applications folder.
    Run the app.
    System Requirements
    Mac OS X version 10.4 or later
    Internet connection
    Support
    For support or to provide feedback on WeatherBug Alert for Mac, please visit the WeatherBug Alert Forum
    Click here for the OS X 10.3.9 Compatible Version
    FREE DOWNLOAD 
    When I click install WEATHERBUG from the FINDER it get this message.
    "WeatherBug Alert" can't be opened because it is from an unidentified developer. 
    Your security preferances allow installation of only apps from the Mac App Store and identified developers.
    Safari downloaded this file today at 7:33 AM from wdownload.weatherbug.com.

  • TS3274 My iPad screen is in the negative, not sure how to switch it back to normal

    My iPad screen is in the negative, not sure how to switch it back to normal

    Settings>General>Accessibility>Invert Colors>Off

  • HT201209 Please help, tried to redeem an App Store gift card for $15.00.  It worked when I put it in earlier but I was still charging purchases to my credit card.  I did not see how to switch over to the gift card.  Credit is gone and code now invalid.  W

    I need help with redeeming a $15 App Store certificate.  I tried to redeem earlier in the day and it was credited to my account.  I could not figure out how to switch payment from my credit card to the gift card credit.  Later on in the day I see the credit is completely gone and now the card is invalid.  Nothing was purchased with the gift card so I want to know where the credit went.  I also have$5 credited to my Apple ID from a past gift card that I can't access.  What can I do.  Is there a customer service number???

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Itunes is detecting my iphone in recovery mode whereas my phone is plugged in with normal mode

    I tried to sync my iphone today but the itunes says it can nt read the cntents of my iphone so i have to restore it. It says it will erase all my data n will restore it from d recent backup but the problem is i dont hav any backup of my iphone. So will it perform a backup during d restoring process or i hav to arrange a backup before restoring? N if backup is required how can i do so coz itunes cud nt back up my iphone?

    up for this..

Maybe you are looking for

  • Install OS 9.2 on G4 MDD running Tiger

    For some reason, though I have OS 9 seemingly installed and visible as a selection in my Start Up Disk, when clicking on it, it fails to start up, and I have to go through the trouble of restarting with the OS X install disc. So what I'd like to do i

  • How to put a border around locked text boxes?

    I have a number of locked text boxes. I need to place a border (a box) around them. How do I do that?

  • Help to solve problem with packaging log4j in a EAR file

    Hi All i struggle hard to create a EAR composed of EJB JARs and WARs and the programs in these JARs and WARs use log4j to log msg. Because i want all J2EE apps to have their own version of log4j library, i package log4j.jar in the EAR file. Below is

  • Database performance side effects of huge inserts

    All, I know this might not be the right place to raise this question. Just thought any of you might have come across this in db programming. I have a table in database in which there would be huge no. of insertions through out the day. The volume of

  • Selection fields of /SAPAPO/TIMESTREAM_UPDATE

    If we schedule the program /SAPAPO/TIMESTREAM_UPDATE and put *, and * in both Calendars and Timestream fields, it does not generate/update the timestreams. But if we put values in both fields, it generates timestreams. Is it standard behavior? In tha