SecurityError: Error #2152: Full screen mode is not allowed.
- by meghana
I have one flash player , which have full-screen functionality . which is not working in FF and MAC Chrome . and throws an error as below.
SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()
at com.IQMediaCorp.core::IQMediaCorpPlayer/ToggleFullScreen()
I have googled about the issue and already verified some points below
my player have allowfullscreen = true in html object / encode
element.
the methid ToggleFullScreen is an mouse click event
below is code for ToggleFullScreen method
public function ToggleFullScreen(e:MouseEvent)
{
if (stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE)
{
bKnob.alpha=0;
bigScreen=true;
stage.displayState=StageDisplayState.NORMAL;
}
else
{
bigScreen=false;
stage.displayState=StageDisplayState.FULL_SCREEN_INTERACTIVE;
bKnob.alpha=0;
}
}
i don't get the reason why it is not working. can anybody help??
Thanks