Optional
allowIf set to true, the movie is allowed to interact with the page through
JavaScript, using a flash concept called ExternalInterface
.
This should only be enabled for movies you trust.
Optional
parametersAlso known as "flashvars" - these are values that may be passed to and loaded by the movie.
If a URL if specified when loading the movie, some parameters will be extracted by the query portion of that URL and then overwritten by any explicitly set here.
Optional
autoplayControls the auto-play behaviour of Ruffle.
Optional
backgroundControls the background color of the player.
Must be an HTML color (e.g. "#FFFFFF"). CSS colors are not allowed.
null
uses the background color of the SWF file.
Optional
letterboxControls letterbox behavior when the Flash container size does not match the movie size.
Optional
unmuteControls the visibility of the unmute overlay when the player is started muted.
Optional
upgradeWhether or not to auto-upgrade all embedded URLs to https.
Flash content that embeds http urls will be blocked from
accessing those urls by the browser when Ruffle is loaded
in a https context. Set to true
to automatically change
http://
to https://
for all embedded URLs when Ruffle is
loaded in an https context.
Optional
compatibilityEnable (true) or disable (false) Ruffle's built in compatibility rules.
These are rules that may make some content work by deliberately changing behaviour, for example by rewriting requests or spoofing SWF urls if they rely on websites that no longer exist.
Optional
favorFavor using the real Adobe Flash Player over Ruffle if the browser supports it.
Optional
warnThis is no longer used and does not affect anything. It is only kept for backwards compatibility.
Previously: "Whether or not to display an overlay with a warning when loading a movie with unsupported content."
Optional
logConsole logging level.
Optional
showIf set to true, the context menu has an option to download the SWF.
Optional
contextWhether or not to show a context menu when right-clicking a Ruffle instance.
Optional
preloaderWhether or not to show a splash screen before the SWF has loaded with Ruffle (backwards-compatibility).
Optional
splashWhether or not to show a splash screen before the SWF has loaded with Ruffle.
Optional
maxMaximum amount of time a script can take before scripting is disabled.
Optional
baseSpecifies the base directory or URL used to resolve all relative path statements in the SWF file. null means the current directory.
Optional
menuIf set to true, the built-in context menu items are visible
This is equivalent to Stage.showMenu.
Optional
salignThis is equivalent to Stage.align.
Optional
forceIf set to true, movies are prevented from changing the stage alignment.
Optional
qualityThis is equivalent to Stage.quality.
Optional
scaleThis is equivalent to Stage.scaleMode.
Optional
forceIf set to true, movies are prevented from changing the stage scale mode.
Optional
allowIf set to true, the Stage's displayState can be changed
Optional
frameSets and locks the player's frame rate, overriding the movie's frame rate.
Optional
wmodeThe window mode of the Ruffle player.
This setting controls how the Ruffle container is layered and rendered with other content on the page.
Optional
playerThe emulated version of the player.
This controls the version that is reported to the movie. null means latest version.
Optional
preferredThe preferred render backend of the Ruffle player.
This option should only be used for testing; the available backends may change in future releases. By default, Ruffle chooses the most featureful backend supported by the user's system, falling back to more basic backends if necessary. The available values in order of default preference are: "webgpu", "wgpu-webgl", "webgl", "canvas".
Optional
publicThe URL at which Ruffle can load its extra files (i.e. .wasm
).
Optional
polyfillsWhether or not to enable polyfills on the page.
Polyfills will look for "legacy" flash content like <object>
and <embed>
elements, and replace them with compatible
Ruffle elements.
Optional
openThe handling mode of links opening a new website.
Optional
allowWhich flash networking APIs may be accessed.
Optional
openA function to call for opening content in a new tab.
This is only used if the content cannot be loaded due to CORS, and the Extension version of Ruffle will override this to provide a local player.
Optional
socketAn array of SocketProxy objects.
When a SWF tries to establish a Socket connection, Ruffle will search for a matching SocketProxy object in this array and use it to establish a WebSocket connection, through which all communication is tunneled through.
When none are found, Ruffle will fail the connection gracefully. When multiple matching SocketProxy objects exist, the first one is used.
Optional
fontAn array of font URLs to eagerly load and provide to Ruffle.
These will be fetched by the browser as part of the loading of Flash content, which may slow down load times.
Currently only SWFs are supported, and each font embedded within that SWF will be used as device font by Flash content.
If any URL fails to load (either it's an invalid file, or a network error occurs), Ruffle will log an error but continue without it.
Optional
defaultThe font names to use for each "default" Flash device font.
Optional
credentialAn array of origins that credentials may be sent to. Credentials are cookies, authorization headers, or TLS client certificates.
Entries should include the protocol and host, for example https://example.org
or http://subdomain.example.org
.
Cookies will always be sent to the same origin as the page the content was loaded on. If you configure this to send cookies to an origin but that origin does not configure CORS to allow it, then requests will start failing due to CORS. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials.
This directly corresponds to https://developer.mozilla.org/en-US/docs/Web/API/fetch#credentials
Every request will be same-origin
unless specified here, in which case it will be include
.
Optional
playerThe player runtime to emulate
This allows you to emulate Adobe AIR or Adobe Flash Player.
Any options used for loading a movie.