Embed parameter Description:
1,allowscriptaccess
Parameters:
Samedomain: Out-of-Office scripting access is allowed only when the SWF file and the Web page are in the same domain. This is the default value for AVM2 content----play network video and need to set this value (this is the default)
Never: Outgoing script access will always fail.
Always: Out-of-script access will be successful at all times.
The allowscriptaccess parameter prevents a script from being accessed from a SWF file hosted in one domain from an HTML page in another domain.
Use allowscriptaccess= "Never" for all SWF files that are hosted from another domain to ensure the security of scripts that reside in HTML pages.
2,allownetworking
Parameters:
All network APIs are allowed in the "all" (default) ―swf file.
The "internal" ―swf file may not invoke the browser navigation or browser interaction API, but it will invoke any other network API.
The "none" ―swf file may not invoke the browser navigation or browser interaction API, and it cannot use any SWF to SWF communication API.
You can control the SWF file's access to network functionality. Calling a banned API throws a Securityerror exception.
When Allownetworking is set to "internal", the following APIs are disabled:
Navigatetourl ()
Fscommand ()
Externalinterface.call ()
When Allownetworking is set to "none", the following APIs are prohibited in addition to those listed above:
Sendtourl ()
Filereference.download ()
Filereference.upload ()
Loader.load ()
Localconnection.connect ()
Localconnection.send ()
Netconnection.connect ()
Netstream.play ()
Security.loadpolicyfile ()
Sharedobject.getlocal ()
Sharedobject.getremote ()
Socket.connect ()
Do not fill out this entry to avoid cross-domain restrictions (all is the default)
3,allowfullscreen
Parameters:
Enable full screen mode set to "true", otherwise set to "false" (default value)
ActionScript that starts full-screen mode is called only when it responds to mouse events or keyboard events. If called in other cases, Flash Player throws an exception.
In full-screen mode, users cannot enter text in the text entry field. All keyboard input and keyboard-related ActionScript are disabled in full-screen mode, except for keyboard shortcuts that return the application to standard mode (for example, press ESC).
When the content enters full-screen mode, the program displays a message instructing the user how to exit and return to standard mode. The message is displayed for a few seconds and then fades out.
If a caller is not in the same security sandbox as the stage owner (the primary SWF file), calling the Displaystate property of the stage object throws an exception.
Administrators can disable full-screen mode for SWF files running in the browser by setting Fullscreendisable = 1 in the Mms.cfg file.
In the browser, you must include the SWF file in the HTML page to enter full-screen mode.
Always allow full-screen mode in standalone player or projection files.
Complete Example:
<! DOCTYPE html>
<!--saved from Url= (0052) http://cdn-dl.insta360.com/event/event-bikini/flash/--
<title> Test player</title>
<meta charset= "UTF-8" >
<style type= "text/css" media= "screen" >
Html
Body {
height:100%;
Background-color: #ffffff;
}
Body {
margin:0;
padding:0;
Overflow:hidden;
}
#flashContent {
width:100%;
height:100%;
}
</style>
<body>
<div id= "Flashcontent" >
<embed allowscriptaccess= "Samedomain" allownetworking= "All" invokeurls= "true" src= "threedplayer2.swf" Pluginspage= "Http://www.macromedia.com/go/getflashplayer" type= "Application/x-shockwave-flash"
quality= "High" autostart= "0" wmode= "direct"
Width= "100%" height= "100%"
Align= "Middle"
Allowfullscreen= "true"
Allowscriptaccess= "Always"
Scale= "ShowAll"
Flashvars= ""
>
</div>
</body>
HTML Load SWF compatible IE8 (with the following) display