Construct the Ruffle public API.
-Do not use this function to negotiate a public API. Instead, use
-public_api to register your Ruffle source with an existing public API
-if it exists.
Constructing a Public API will also trigger it to initialize Ruffle once -the page loads, if the API has not already been superseded.
-Optionalprev: PublicAPILike | nullWhat used to be in the public API slot.
-This is used to upgrade from a prior version of the public API, or from -a user-defined configuration object placed in the public API slot.
-The configuration object used when Ruffle is instantiated.
-The version of the public API.
-This is not the version of Ruffle itself.
-This allows a page with an old version of the Public API to be upgraded -to a new version of the API. The public API is intended to be changed -very infrequently, if at all, but this provides an escape mechanism for -newer Ruffle sources to upgrade older installations.
-The version of this public API.
-Determine the name of the newest registered source in the Public API.
-The name of the source, or null if no source
-has yet to be registered.
Negotiate and start Ruffle.
-This function reads the config parameter to determine which polyfills -should be enabled. If the configuration parameter is missing, then we -use a built-in set of defaults sufficient to fool sites with static -content and weak plugin detection.
-Look up the newest Ruffle source and return it's API.
-An instance of the Source API.
-Look up a specific Ruffle version (or any version satisfying a given set -of requirements) and return it's API.
-A set of semantic version requirement -strings that the player version must satisfy.
-An instance of the Source API, if one or more -sources satisfied the requirement.
-Look up the newest Ruffle version compatible with the local source, if
-it's installed. Otherwise, use the latest version.
An instance of the Source API
-Look up the newest Ruffle version with the exact same version as the
-local source, if it's installed. Otherwise, use the latest version.
An instance of the Source API
-Indicates that this version of the public API has been superseded by a -newer version.
-This should only be called by a newer version of the Public API. -Identical versions of the Public API should not supersede older versions -of that same API.
-Unfortunately, we can't disable polyfills after-the-fact, so this -only lets you disable the init event...
-Represents the Ruffle public API.
+The public API exists primarily to allow multiple installs of Ruffle on a + page (e.g. an extension install and a local one) to cooperate. In an ideal + situation, all Ruffle sources on the page install themselves into a single + public API, and then the public API picks the newest version by default.
+This API is versioned, in case we need to upgrade it. However, it must be + backwards- and forwards-compatible with all known sources.
+The configuration object used when Ruffle is instantiated.
+The version of the public API.
+This is not the version of Ruffle itself.
+This allows a page with an old version of the Public API to be upgraded + to a new version of the API. The public API is intended to be changed + very infrequently, if at all, but this provides an escape mechanism for + newer Ruffle sources to upgrade older installations.
+The version of this public API.
+Negotiate and start Ruffle.
+This function reads the config parameter to determine which polyfills + should be enabled. If the configuration parameter is missing, then we + use a built-in set of defaults sufficient to fool sites with static + content and weak plugin detection.
+Look up the newest Ruffle version with the exact same version as the
+ local source, if it's installed. Otherwise, use the latest version.
An instance of the Source API
+Look up the newest Ruffle version compatible with the local source, if
+ it's installed. Otherwise, use the latest version.
An instance of the Source API
+Look up the newest Ruffle source and return it's API.
+An instance of the Source API.
+Determine the name of the newest registered source in the Public API.
+The name of the source, or null if no source
+ has yet to be registered.
Register a given source with the Ruffle Public API.
+The name of the source.
+The public API object. This must conform to the shape
+ of SourceAPI.
Look up a specific Ruffle version (or any version satisfying a given set + of requirements) and return it's API.
+A set of semantic version requirement + strings that the player version must satisfy.
+An instance of the Source API, if one or more + sources satisfied the requirement.
+Join a source into the public API, if it doesn't already exist.
+The previous iteration of the Ruffle API.
+The prevRuffle param lists the previous object in the RufflePlayer
+ slot. We perform some checks to see if this is a Ruffle public API or a
+ conflicting object. If this is conflicting, then a new public API will
+ be constructed (see the constructor information for what happens to
+ prevRuffle).
Note that Public API upgrades are deliberately not enabled in this + version of Ruffle, since there is no Public API to upgrade from.
+The name of this particular + Ruffle source.
+The Ruffle source to add.
+If both parameters are provided they will be used to define a new Ruffle + source to register with the public API.
+The Ruffle Public API.
+Generated using TypeDoc
+A polyfill html element.
+This specific class tries to polyfill existing <embed> tags,
+ and should not be used. Prefer RufflePlayer instead.
Constructs a new Ruffle flash player for insertion onto the page.
+This specific class tries to polyfill existing <embed> tags,
+ and should not be used. Prefer RufflePlayer instead.
node is a CDATASection node.
+node is a Comment node.
+node is a DocumentFragment node.
+node is a document.
+Set when other is a descendant of node.
+Set when other is an ancestor of node.
+Set when node and other are not in the same tree.
+Set when other is following node.
+Set when other is preceding node.
+node is a doctype.
+node is an element.
+node is a ProcessingInstruction node.
+node is a Text node.
+If 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.
+Returns node's node document's document base URL.
+Returns the children.
+Returns the child elements.
+Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
+Returns the value of element's class content attribute. Can be set to change it.
+Any configuration that should apply to this specific player. + This will be defaulted with any global configuration.
+Returns the first child.
+Returns the first child that is an element, and null otherwise.
+Returns the value of element's id content attribute. Can be set to change it.
+Returns true if node is connected and false otherwise.
+Returns the last child.
+Returns the last child that is an element, and null otherwise.
+Returns the local name.
+Returns the namespace.
+Returns the first following sibling that is an element, and null otherwise.
+Returns the next sibling.
+Returns a string appropriate for the type of node.
+Returns the type of node.
+Fires when the user aborts the download.
+Fires when the object loses the input focus.
+Occurs when playback is possible, but would require further buffering.
+Fires when the contents of the object or selection have changed.
+Fires when the user clicks the left mouse button on the object
+Fires when the user clicks the right mouse button in the client area, opening the context menu.
+Fires when the user double-clicks the object.
+Fires on the source object continuously during a drag operation.
+Fires on the source object when the user releases the mouse at the close of a drag operation.
+Fires on the target element when the user drags the object to a valid drop target.
+Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+Fires on the target element continuously while the user drags the object over a valid drop target.
+Fires on the source object when the user starts to drag a text selection or selected object.
+Occurs when the duration attribute is updated.
+Occurs when the media element is reset to its initial state.
+Occurs when the end of playback is reached.
+Fires when an error occurs during object loading.
+Fires when the object receives focus.
+Fires when the user presses a key.
+Fires when the user presses an alphanumeric key.
+Fires when the user releases a key.
+Fires immediately after the browser loads the object.
+Occurs when media data is loaded at the current playback position.
+Occurs when the duration and dimensions of the media have been determined.
+Occurs when Internet Explorer begins looking for media data.
+Fires when the user clicks the object with either mouse button.
+Fires when the user moves the mouse over the object.
+Fires when the user moves the mouse pointer outside the boundaries of the object.
+Fires when the user moves the mouse pointer into the object.
+Fires when the user releases a mouse button while the mouse is over the object.
+Occurs when playback is paused.
+Occurs when the play method is requested.
+Occurs when the audio or video has started playing.
+Occurs to indicate progress while downloading media data.
+Occurs when the playback rate is increased or decreased.
+Fires when the user resets a form.
+Fires when the user repositions the scroll box in the scroll bar on the object.
+Occurs when the seek operation ends.
+Occurs when the current playback position is moved.
+Fires when the current selection changes.
+Occurs when the download has stopped.
+Occurs if the load operation has been intentionally halted.
+Occurs to indicate the current playback position.
+Occurs when the volume is changed, or playback is muted or unmuted.
+Occurs when playback stops because the next frame of a video resource is not available.
+Returns the parent element.
+Returns the parent.
+Returns the namespace prefix.
+Returns the first preceding sibling that is an element, and null otherwise.
+Returns the previous sibling.
+Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
+Returns the value of element's slot content attribute. Can be set to change it.
+Returns the HTML-uppercased qualified name.
+Checks if this player is allowed to be fullscreen by the browser.
+True if you may call enterFullscreen.
+Checks if this player is currently fullscreen inside the browser.
+True if it is fullscreen.
+Sets a trace observer on this flash player.
+The observer will be called, as a function, for each message that the playing movie will "trace" (output).
+The observer that will be called for each trace.
+Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Creates a shadow root for element and returns it.
+Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns a copy of node. If deep is true, the copy also includes the node's descendants.
+Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
+Returns a bitmask indicating the position of other relative to node.
+Returns true if other is an inclusive descendant of node, and false otherwise.
+Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
+Requests the browser to make this player fullscreen.
+This is not guaranteed to succeed, please check fullscreenEnabled first.
+Requests the browser to no longer make this player fullscreen.
+Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
+Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
+Returns the qualified names of all element's attributes. Can contain duplicates.
+Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
+Returns node's root.
+Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
+Returns true if element has an attribute whose namespace is namespace and local name is localName.
+Returns true if element has attributes, and false otherwise.
+Returns whether node has children.
+Returns whether node and otherNode have the same properties.
+Loads a specified movie into this player.
+This will replace any existing movie that may be playing.
+One of the following:
+The options will be defaulted by the config field, which itself
+ is defaulted by a global window.RufflePlayer.config.
Returns true if matching selectors against element's root yields element, and false otherwise.
+Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
+Panics this specific player, forcefully destroying all resources and displays an error message to the user.
+This should be called when something went absolutely, incredibly and disastrously wrong and there is no chance + of recovery.
+Ruffle will attempt to isolate all damage to this specific player instance, but no guarantees can be made if there + was a core issue which triggered the panic. If Ruffle is unable to isolate the cause to a specific player, then + all players will panic and Ruffle will become "poisoned" - no more players will run on this page until it is + reloaded fresh.
+The error, if any, that triggered this panic.
+Pauses this player.
+No more frames, scripts or sounds will be executed. + This movie will be considered inactive and will not wake up until resumed.
+Plays or resumes the movie.
+Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns the first element that is a descendant of node that matches selectors.
+Returns all element descendants of node that match selectors.
+Removes node.
+Removes element's first attribute whose qualified name is qualifiedName.
+Removes element's attribute whose namespace is namespace and local name is localName.
+Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Displays element fullscreen and resolves promise when done.
+When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
+Sets the value of element's first attribute whose qualified name is qualifiedName to value.
+Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
+If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
+Returns true if qualifiedName is now present, and false otherwise.
+Creates a RuffleEmbed that will polyfill and replace the given element.
+Element to replace.
+Created RuffleEmbed.
+Checks if the given element may be polyfilled with this one.
+Element to check.
+True if the element looks like a flash embed.
+Generated using TypeDoc
+A polyfill html element.
+This specific class tries to polyfill existing <object> tags,
+ and should not be used. Prefer RufflePlayer instead.
Constructs a new Ruffle flash player for insertion onto the page.
+This specific class tries to polyfill existing <object> tags,
+ and should not be used. Prefer RufflePlayer instead.
node is a CDATASection node.
+node is a Comment node.
+node is a DocumentFragment node.
+node is a document.
+Set when other is a descendant of node.
+Set when other is an ancestor of node.
+Set when node and other are not in the same tree.
+Set when other is following node.
+Set when other is preceding node.
+node is a doctype.
+node is an element.
+node is a ProcessingInstruction node.
+node is a Text node.
+If 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.
+Returns node's node document's document base URL.
+Returns the children.
+Returns the child elements.
+Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
+Returns the value of element's class content attribute. Can be set to change it.
+Any configuration that should apply to this specific player. + This will be defaulted with any global configuration.
+Returns the first child.
+Returns the first child that is an element, and null otherwise.
+Returns the value of element's id content attribute. Can be set to change it.
+Returns true if node is connected and false otherwise.
+Returns the last child.
+Returns the last child that is an element, and null otherwise.
+Returns the local name.
+Returns the namespace.
+Returns the first following sibling that is an element, and null otherwise.
+Returns the next sibling.
+Returns a string appropriate for the type of node.
+Returns the type of node.
+Fires when the user aborts the download.
+Fires when the object loses the input focus.
+Occurs when playback is possible, but would require further buffering.
+Fires when the contents of the object or selection have changed.
+Fires when the user clicks the left mouse button on the object
+Fires when the user clicks the right mouse button in the client area, opening the context menu.
+Fires when the user double-clicks the object.
+Fires on the source object continuously during a drag operation.
+Fires on the source object when the user releases the mouse at the close of a drag operation.
+Fires on the target element when the user drags the object to a valid drop target.
+Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+Fires on the target element continuously while the user drags the object over a valid drop target.
+Fires on the source object when the user starts to drag a text selection or selected object.
+Occurs when the duration attribute is updated.
+Occurs when the media element is reset to its initial state.
+Occurs when the end of playback is reached.
+Fires when an error occurs during object loading.
+Fires when the object receives focus.
+Fires when the user presses a key.
+Fires when the user presses an alphanumeric key.
+Fires when the user releases a key.
+Fires immediately after the browser loads the object.
+Occurs when media data is loaded at the current playback position.
+Occurs when the duration and dimensions of the media have been determined.
+Occurs when Internet Explorer begins looking for media data.
+Fires when the user clicks the object with either mouse button.
+Fires when the user moves the mouse over the object.
+Fires when the user moves the mouse pointer outside the boundaries of the object.
+Fires when the user moves the mouse pointer into the object.
+Fires when the user releases a mouse button while the mouse is over the object.
+Occurs when playback is paused.
+Occurs when the play method is requested.
+Occurs when the audio or video has started playing.
+Occurs to indicate progress while downloading media data.
+Occurs when the playback rate is increased or decreased.
+Fires when the user resets a form.
+Fires when the user repositions the scroll box in the scroll bar on the object.
+Occurs when the seek operation ends.
+Occurs when the current playback position is moved.
+Fires when the current selection changes.
+Occurs when the download has stopped.
+Occurs if the load operation has been intentionally halted.
+Occurs to indicate the current playback position.
+Occurs when the volume is changed, or playback is muted or unmuted.
+Occurs when playback stops because the next frame of a video resource is not available.
+Returns the parent element.
+Returns the parent.
+Returns the namespace prefix.
+Returns the first preceding sibling that is an element, and null otherwise.
+Returns the previous sibling.
+Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
+Returns the value of element's slot content attribute. Can be set to change it.
+Returns the HTML-uppercased qualified name.
+Checks if this player is allowed to be fullscreen by the browser.
+True if you may call enterFullscreen.
+Checks if this player is currently fullscreen inside the browser.
+True if it is fullscreen.
+Sets a trace observer on this flash player.
+The observer will be called, as a function, for each message that the playing movie will "trace" (output).
+The observer that will be called for each trace.
+Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Creates a shadow root for element and returns it.
+Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns a copy of node. If deep is true, the copy also includes the node's descendants.
+Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
+Returns a bitmask indicating the position of other relative to node.
+Returns true if other is an inclusive descendant of node, and false otherwise.
+Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
+Requests the browser to make this player fullscreen.
+This is not guaranteed to succeed, please check fullscreenEnabled first.
+Requests the browser to no longer make this player fullscreen.
+Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
+Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
+Returns the qualified names of all element's attributes. Can contain duplicates.
+Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
+Returns node's root.
+Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
+Returns true if element has an attribute whose namespace is namespace and local name is localName.
+Returns true if element has attributes, and false otherwise.
+Returns whether node has children.
+Returns whether node and otherNode have the same properties.
+Loads a specified movie into this player.
+This will replace any existing movie that may be playing.
+One of the following:
+The options will be defaulted by the config field, which itself
+ is defaulted by a global window.RufflePlayer.config.
Returns true if matching selectors against element's root yields element, and false otherwise.
+Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
+Panics this specific player, forcefully destroying all resources and displays an error message to the user.
+This should be called when something went absolutely, incredibly and disastrously wrong and there is no chance + of recovery.
+Ruffle will attempt to isolate all damage to this specific player instance, but no guarantees can be made if there + was a core issue which triggered the panic. If Ruffle is unable to isolate the cause to a specific player, then + all players will panic and Ruffle will become "poisoned" - no more players will run on this page until it is + reloaded fresh.
+The error, if any, that triggered this panic.
+Pauses this player.
+No more frames, scripts or sounds will be executed. + This movie will be considered inactive and will not wake up until resumed.
+Plays or resumes the movie.
+Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns the first element that is a descendant of node that matches selectors.
+Returns all element descendants of node that match selectors.
+Removes node.
+Removes element's first attribute whose qualified name is qualifiedName.
+Removes element's attribute whose namespace is namespace and local name is localName.
+Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Displays element fullscreen and resolves promise when done.
+When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
+Sets the value of element's first attribute whose qualified name is qualifiedName to value.
+Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
+If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
+Returns true if qualifiedName is now present, and false otherwise.
+Creates a RuffleObject that will polyfill and replace the given element.
+Element to replace.
+Created RuffleObject.
+Checks if the given element may be polyfilled with this one.
+Element to check.
+True if the element looks like a flash object.
+Generated using TypeDoc
+The ruffle player element that should be inserted onto the page.
+This element will represent the rendered and intractable flash movie.
+Constructs a new Ruffle flash player for insertion onto the page.
+node is a CDATASection node.
+node is a Comment node.
+node is a DocumentFragment node.
+node is a document.
+Set when other is a descendant of node.
+Set when other is an ancestor of node.
+Set when node and other are not in the same tree.
+Set when other is following node.
+Set when other is preceding node.
+node is a doctype.
+node is an element.
+node is a ProcessingInstruction node.
+node is a Text node.
+If 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.
+Returns node's node document's document base URL.
+Returns the children.
+Returns the child elements.
+Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
+Returns the value of element's class content attribute. Can be set to change it.
+Any configuration that should apply to this specific player. + This will be defaulted with any global configuration.
+Returns the first child.
+Returns the first child that is an element, and null otherwise.
+Returns the value of element's id content attribute. Can be set to change it.
+Returns true if node is connected and false otherwise.
+Returns the last child.
+Returns the last child that is an element, and null otherwise.
+Returns the local name.
+Returns the namespace.
+Returns the first following sibling that is an element, and null otherwise.
+Returns the next sibling.
+Returns a string appropriate for the type of node.
+Returns the type of node.
+Fires when the user aborts the download.
+Fires when the object loses the input focus.
+Occurs when playback is possible, but would require further buffering.
+Fires when the contents of the object or selection have changed.
+Fires when the user clicks the left mouse button on the object
+Fires when the user clicks the right mouse button in the client area, opening the context menu.
+Fires when the user double-clicks the object.
+Fires on the source object continuously during a drag operation.
+Fires on the source object when the user releases the mouse at the close of a drag operation.
+Fires on the target element when the user drags the object to a valid drop target.
+Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+Fires on the target element continuously while the user drags the object over a valid drop target.
+Fires on the source object when the user starts to drag a text selection or selected object.
+Occurs when the duration attribute is updated.
+Occurs when the media element is reset to its initial state.
+Occurs when the end of playback is reached.
+Fires when an error occurs during object loading.
+Fires when the object receives focus.
+Fires when the user presses a key.
+Fires when the user presses an alphanumeric key.
+Fires when the user releases a key.
+Fires immediately after the browser loads the object.
+Occurs when media data is loaded at the current playback position.
+Occurs when the duration and dimensions of the media have been determined.
+Occurs when Internet Explorer begins looking for media data.
+Fires when the user clicks the object with either mouse button.
+Fires when the user moves the mouse over the object.
+Fires when the user moves the mouse pointer outside the boundaries of the object.
+Fires when the user moves the mouse pointer into the object.
+Fires when the user releases a mouse button while the mouse is over the object.
+Occurs when playback is paused.
+Occurs when the play method is requested.
+Occurs when the audio or video has started playing.
+Occurs to indicate progress while downloading media data.
+Occurs when the playback rate is increased or decreased.
+Fires when the user resets a form.
+Fires when the user repositions the scroll box in the scroll bar on the object.
+Occurs when the seek operation ends.
+Occurs when the current playback position is moved.
+Fires when the current selection changes.
+Occurs when the download has stopped.
+Occurs if the load operation has been intentionally halted.
+Occurs to indicate the current playback position.
+Occurs when the volume is changed, or playback is muted or unmuted.
+Occurs when playback stops because the next frame of a video resource is not available.
+Returns the parent element.
+Returns the parent.
+Returns the namespace prefix.
+Returns the first preceding sibling that is an element, and null otherwise.
+Returns the previous sibling.
+Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
+Returns the value of element's slot content attribute. Can be set to change it.
+Returns the HTML-uppercased qualified name.
+Checks if this player is allowed to be fullscreen by the browser.
+True if you may call enterFullscreen.
+Checks if this player is currently fullscreen inside the browser.
+True if it is fullscreen.
+Sets a trace observer on this flash player.
+The observer will be called, as a function, for each message that the playing movie will "trace" (output).
+The observer that will be called for each trace.
+Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Creates a shadow root for element and returns it.
+Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns a copy of node. If deep is true, the copy also includes the node's descendants.
+Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
+Returns a bitmask indicating the position of other relative to node.
+Returns true if other is an inclusive descendant of node, and false otherwise.
+Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
+Requests the browser to make this player fullscreen.
+This is not guaranteed to succeed, please check fullscreenEnabled first.
+Requests the browser to no longer make this player fullscreen.
+Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
+Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
+Returns the qualified names of all element's attributes. Can contain duplicates.
+Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
+Returns node's root.
+Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
+Returns true if element has an attribute whose namespace is namespace and local name is localName.
+Returns true if element has attributes, and false otherwise.
+Returns whether node has children.
+Returns whether node and otherNode have the same properties.
+Loads a specified movie into this player.
+This will replace any existing movie that may be playing.
+One of the following:
+The options will be defaulted by the config field, which itself
+ is defaulted by a global window.RufflePlayer.config.
Returns true if matching selectors against element's root yields element, and false otherwise.
+Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
+Panics this specific player, forcefully destroying all resources and displays an error message to the user.
+This should be called when something went absolutely, incredibly and disastrously wrong and there is no chance + of recovery.
+Ruffle will attempt to isolate all damage to this specific player instance, but no guarantees can be made if there + was a core issue which triggered the panic. If Ruffle is unable to isolate the cause to a specific player, then + all players will panic and Ruffle will become "poisoned" - no more players will run on this page until it is + reloaded fresh.
+The error, if any, that triggered this panic.
+Pauses this player.
+No more frames, scripts or sounds will be executed. + This movie will be considered inactive and will not wake up until resumed.
+Plays or resumes the movie.
+Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Returns the first element that is a descendant of node that matches selectors.
+Returns all element descendants of node that match selectors.
+Removes node.
+Removes element's first attribute whose qualified name is qualifiedName.
+Removes element's attribute whose namespace is namespace and local name is localName.
+Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
+Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+Displays element fullscreen and resolves promise when done.
+When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
+Sets the value of element's first attribute whose qualified name is qualifiedName to value.
+Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
+If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
+Returns true if qualifiedName is now present, and false otherwise.
+Generated using TypeDoc
+Represents this particular version of Ruffle.
+Multiple APIs can be instantiated from different sources; e.g. an "extension" + version, versus a "local" version. This expresses to the Public API + negotiator (see PublicAPI) what this particular version of Ruffle is and + how to control it.
+Construct a Source API.
+The name of this particular source.
+The version of this particular API.
+This is returned as a string in a semver compatible format.
+The version of this Ruffle source
+Create a Ruffle player element using this particular version of Ruffle.
+The player element. This is a DOM element that may be inserted + into the current page as you wish.
+Polyfill the plugin detection.
+This needs to run before any plugin detection script does.
+Start up the polyfills.
+Do not run polyfills for more than one Ruffle source at a time.
+Whether or not Ruffle is running as a browser's extension.
+Generated using TypeDoc
+A representation of a semver 2 compliant version string
+Construct a Version from specific components.
+If you wish to parse a string into a Version then please use fromSemver.
+The major version component.
+The minor version component.
+The patch version component.
+A list of pre-release identifiers, if any
+A list of build identifiers, if any
+Returns true if this version has precedence over (is newer than) another + version.
+Precedence is defined as in the Semver 2 spec. This implements the > + operator in npm's semver package, with the exception of the prerelease + exclusion rule.
+The other version to test against
+True if this version has precedence over the other one
+Returns true if a given version is compatible with this one.
+Compatibility is defined as having the same nonzero major version + number, or if both major versions are zero, the same nonzero minor + version number, or if both minor versions are zero, the same nonzero + patch version number.
+This implements the ^ operator in npm's semver package, with the + exception of the prerelease exclusion rule.
+The other version to test against
+True if compatible
+Tests if a given version is equivalent to this one.
+Build and prerelease tags are ignored.
+The other version to test against
+True if the given version is equivalent
+Tests if a given version is stable or a compatible prerelease for this + version.
+This implements the prerelease exclusion rule of NPM semver: a + prerelease version can only pass this check if the major/minor/patch + components of both versions are the same. Otherwise, the prerelease + version always fails.
+The other version to test against
+True if the given version is either stable, or a + prerelease in the same series as this one.
+Construct a version from a semver 2 compliant string.
+This function is intended for use with semver 2 compliant strings. + Malformed strings may still parse correctly, but this result is not + guaranteed.
+A semver 2.0.0 compliant version string
+A version object
+Generated using TypeDoc
+Represents a set of version requirements.
+Constructs a range of versions as specified by the given requirements.
+If you wish to construct this object from a string representation, + then use fromRequirementString.
+Requirements to set this range by
+The list of requirements used by this version range.
+This is a disjunctive normal form - that is, an OR of ANDs.
+If all requirements of a single inner array match, the range is + considered successful.
+Determine if a given version satisfies this range.
+A version object to test against.
+Whether or not the given version matches this range
+Parse a requirement string into a version range.
+The version requirements, consisting of a + series of space-separated strings, each one being a semver version + optionally prefixed by a comparator or a separator.
+Valid comparators are:
+"" or "=": Precisely this version">": A version newer than this one">=": A version newer or equal to this one"<": A version older than this one"<=": A version older or equal to this one"^": A version that is compatible with this oneA separator is "||" which splits the requirement string into
+ left OR right.
A version range object.
+Generated using TypeDoc
+Represents the various types of auto-play behaviours that are supported.
-The player should automatically play the movie as soon as it is loaded.
-If the browser does not support automatic audio, the movie will begin -muted.
-The player should not attempt to automatically play the movie.
-This will leave it to the user or API to actually play when appropriate.
-The player should automatically play the movie as soon as it is deemed -"appropriate" to do so.
-The exact behaviour depends on the browser, but commonly requires some -form of user interaction on the page in order to allow auto playing videos -with sound.
-Represents the various context menu options that are supported.
-The context menu should appear when right-clicking or long-pressing -the Ruffle instance.
-The context menu should only appear when right-clicking -the Ruffle instance.
-The context menu should not appear when right-clicking or long-pressing -the Ruffle instance.
-ExperimentalExperimentalSouthExperimentalEastExperimentalNorthExperimentalWestExperimentalLeftExperimentalLeftExperimentalRightExperimentalRightExperimentalSelectExperimentalStartExperimentalDExperimentalDExperimentalDExperimentalDControls whether the content is letterboxed or pillarboxed when the -player's aspect ratio does not match the movie's aspect ratio.
-When letterboxed, black bars will be rendered around the exterior -margins of the content.
-The networking API access mode of the Ruffle player.
-All networking APIs are permitted in the SWF file.
-The SWF file may not call browser navigation or browser interaction APIs.
-The APIs navigateToURL(), fscommand() and ExternalInterface.call() are -prevented in this mode.
-The SWF file may not call browser navigation or browser interaction APIs -and it cannot use any SWF-to-SWF communication APIs.
-Additionally to the ones in internal mode, the APIs sendToURL(), -FileReference.download(), FileReference.upload(), Loader.load(), -LocalConnection.connect(), LocalConnection.send(), NetConnection.connect(), -NetStream.play(), Security.loadPolicyFile(), SharedObject.getLocal(), -SharedObject.getRemote(), Socket.connect(), Sound.load(), URLLoader.load(), -URLStream.load() and XMLSocket.connect() are prevented in this mode.
-This mode is not implemented yet.
-The handling mode of links opening a new website.
-Represents the player runtime to emulate.
-The render backend of a Ruffle player.
-The available backends may change in future releases.
-An in-development API that will be preferred if available in the future. -Should behave the same as wgpu-webgl, except with lower overhead and thus better performance.
-The most featureful and currently preferred backend. -Rendering is done the same way as in the desktop app, then translated to WebGL on-the-fly.
-A vanilla WebGL backend. Was the default backend until the start of 2023, -but is now used as a fallback for devices that do not support WebGL 2. -Supports fewer features and has a faster initialization time; -may be useful for content that does not need advanced features like bitmap drawing or blend modes.
-The slowest and most basic backend, used as a fallback when all else fails. -However, this is currently the only backend that accurately scales hairline strokes. -If you notice excessively thick strokes in specific content, -you may want to use the canvas renderer for that content until the issue is resolved.
-The behavior of scrolling the web page.
-When the player is muted, this controls whether or not Ruffle will show a -"click to unmute" overlay on top of the movie.
-The window mode of a Ruffle player.
-The Flash content is rendered in its own window and layering is done with the browser's -default behavior.
-In Ruffle, this mode functions like WindowMode::Opaque and will layer the Flash content
-together with other HTML elements.
The Flash content is layered together with other HTML elements, and the stage color is -opaque. Content can render above or below Ruffle based on CSS rendering order.
-The Flash content is layered together with other HTML elements, and the SWF stage color is -transparent. Content beneath Ruffle will be visible through transparent areas.
-Request compositing with hardware acceleration when possible.
-This mode has no effect in Ruffle and will function like WindowMode.Opaque.
Request a direct rendering path, bypassing browser compositing when possible.
-This mode has no effect in Ruffle and will function like WindowMode::Opaque.
Describes the loading state of an SWF movie.
-The player should automatically play the movie as soon as it is deemed + "appropriate" to do so.
+The exact behaviour depends on the browser, but commonly requires some + form of user interaction on the page in order to allow auto playing videos + with sound.
+The player should not attempt to automatically play the movie.
+This will leave it to the user or API to actually play when appropriate.
+The player should automatically play the movie as soon as it is loaded.
+If the browser does not support automatic audio, the movie will begin + muted.
+Generated using TypeDoc
+When the player is muted, this controls whether or not Ruffle will show a + "click to unmute" overlay on top of the movie.
+Don't show an overlay and pretend that everything is fine.
+Show an overlay explaining that the movie is muted.
+Generated using TypeDoc
+Install this version of Ruffle into the current page.
-Multiple (or zero) versions of Ruffle may be installed at the same time,
-and you should use window.RufflePlayer.newest() or similar to access the appropriate
-installation at time of use.
The name of this particular -Ruffle source. Common convention is "local" for websites that bundle their own Ruffle, -"extension" for browser extensions, and something else for other use cases. -Names are unique, and last-installed will replace earlier installations with the same name, -regardless of what those installations are or which version they represent.
-Any options used to configure this specific installation of Ruffle.
-ruffle-core is the core javascript bindings to the Wasm ruffle-web binary, -and contains the actual public API.
-For more examples and in-depth documentation on how to use Ruffle on your website, please -check out our wiki.
-The core package is configured for websites that build and bundle their files themselves.
-Simply add ruffle to an npm package, and use something like Webpack to actually bundle and serve
-the files.
If you wish to use Ruffle on a website that doesn't use npm, we have a pre-bundled version which -we call 'selfhosted'. Please refer to its documentation.
-Please note that the .wasm file must be served properly, and some web servers may not do that
-correctly out of the box. Please see our wiki
-for instructions on how to configure this, if you encounter a Incorrect response MIME type error.
If you have an existing website with flash content, you can simply include Ruffle as a script and -our polyfill magic will replace everything for you. No fuss, no mess.
-<script src="path/to/ruffle/ruffle.js"></script>
-
+
+
+
+
+
+ ruffle-core is the core javascript bindings to the Wasm ruffle-web binary, + and contains the actual public API.
+ +For more examples and in-depth documentation on how to use Ruffle on your website, please + check out our wiki.
+ +The core package is configured for websites that build and bundle their files themselves.
+ Simply add ruffle to an npm package, and use something like Webpack to actually bundle and serve
+ the files.
If you wish to use Ruffle on a website that doesn't use npm, we have a pre-bundled version which + we call 'selfhosted'. Please refer to its documentation.
+Please note that the .wasm file must be served properly, and some web servers may not do that
+ correctly out of the box. Please see our wiki
+ for instructions on how to configure this, if you encounter a Incorrect response MIME type error.
If you have an existing website with flash content, you can simply include Ruffle as a script and + our polyfill magic will replace everything for you. No fuss, no mess.
+<script src="path/to/ruffle/ruffle.js"></script>
+
+
+ If you want to control the Ruffle player, you may use our Javascript API.
+<script>
+ window.RufflePlayer = window.RufflePlayer || {};
-Javascript API
If you want to control the Ruffle player, you may use our Javascript API.
-<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("DOMContentLoaded", () => {
let ruffle = window.RufflePlayer.newest();
let player = ruffle.createPlayer();
let container = document.getElementById("container");
container.appendChild(player);
player.ruffle().load("movie.swf");
});
</script>
<script src="path/to/ruffle/ruffle.js"></script>
-
-
-Building, testing or contributing
Please see the ruffle-web README.
-Please see the ruffle-web README.
+Generated using TypeDoc
+Any options used for loading a movie.
-OptionalallowIf 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.
-OptionalparametersAlso 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.
-OptionalautoplayControls the auto-play behaviour of Ruffle.
-OptionalbackgroundControls 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.
OptionalletterboxControls letterbox behavior when the Flash container size does not -match the movie size.
-OptionalunmuteControls the visibility of the unmute overlay when the player -is started muted.
-OptionalupgradeWhether 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.
OptionalcompatibilityEnable (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.
-OptionalfavorFavor using the real Adobe Flash Player over Ruffle if the browser supports it.
-OptionalwarnThis 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."
-OptionallogConsole logging level.
-OptionalshowIf set to true, the context menu has an option to download -the SWF.
-OptionalcontextWhether or not to show a context menu when right-clicking -a Ruffle instance.
-OptionalpreloaderWhether or not to show a splash screen before the SWF has loaded with Ruffle (backwards-compatibility).
-OptionalsplashWhether or not to show a splash screen before the SWF has loaded with Ruffle.
-OptionalmaxMaximum amount of time a script can take before scripting -is disabled.
-OptionalbaseSpecifies the base directory or URL used to resolve all relative path statements in the SWF file. -null means the current directory.
-OptionalmenuIf set to true, the built-in context menu items are visible
-This is equivalent to Stage.showMenu.
-OptionalsalignThis is equivalent to Stage.align.
-OptionalfullControls orientation on mobile in fullscreen mode.
-This is equivalent to the AIR-only method Stage.setAspectRatio.
-OptionalforceIf set to true, movies are prevented from changing the stage alignment.
-OptionalqualityThis is equivalent to Stage.quality.
-OptionalscaleThis is equivalent to Stage.scaleMode.
-OptionalforceIf set to true, movies are prevented from changing the stage scale mode.
-OptionalallowIf set to true, the Stage's displayState can be changed
-OptionalframeSets and locks the player's frame rate, overriding the movie's frame rate.
-OptionalwmodeThe window mode of the Ruffle player.
-This setting controls how the Ruffle container is layered and rendered with other content on the page.
-OptionalplayerThe emulated version of the player.
-This controls the version that is reported to the movie. -null means latest version.
-OptionalpreferredThe 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".
-OptionalpublicThe URL at which Ruffle can load its extra files (i.e. .wasm).
OptionalpolyfillsWhether 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.
OptionalopenThe handling mode of links opening a new website.
-OptionalallowWhich flash networking APIs may be accessed.
-OptionalopenA 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.
-OptionalsocketAn 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.
-OptionalfontAn 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.
-OptionaldefaultThe font names to use for each "default" Flash device font.
-OptionalcredentialAn 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.
OptionalplayerThe player runtime to emulate
-This allows you to emulate Adobe AIR or Adobe Flash Player.
-Optional ExperimentalgamepadAn object mapping gamepad button names to ActionScript key codes.
-With the appropriate mapping pressing a button on the gamepad will look like the corresponding key press to the loaded SWF. -This can be used for adding gamepad support to games that don't support it otherwise.
-An example config for mapping the D-pad to the arrow keys would look like this:
-{ "dpad-up": 38, "dpad-down": 40, "dpad-left": 37, "dpad-right": 39, }
OptionalurlA set of rules that rewrite URLs in both network requests and links.
-They are always scanned in order, and the first one that matches is used.
-A rule either matches using a RegExp (in which case the replacement may use $...),
-or a string (in which case the match and the replacement are always exact).
They are useful when a SWF uses an obsolete URL, in which case -you can rewrite it to something else that works.
-OptionalscrollingSet the scrolling behavior, i.e. how scrolling Flash content affects the web page.
-The original behavior in Flash Player differed across versions, browsers, and wmode settings.
-Options to load a movie by a data stream.
-The data to load a movie from.
-OptionalswfThe filename of the SWF movie to provide to ActionScript.
-OptionalallowIf 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.
-OptionalparametersAlso 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.
-OptionalautoplayControls the auto-play behaviour of Ruffle.
-OptionalbackgroundControls 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.
OptionalletterboxControls letterbox behavior when the Flash container size does not -match the movie size.
-OptionalunmuteControls the visibility of the unmute overlay when the player -is started muted.
-OptionalupgradeWhether 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.
OptionalcompatibilityEnable (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.
-OptionalfavorFavor using the real Adobe Flash Player over Ruffle if the browser supports it.
-OptionalwarnThis 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."
-OptionallogConsole logging level.
-OptionalshowIf set to true, the context menu has an option to download -the SWF.
-OptionalcontextWhether or not to show a context menu when right-clicking -a Ruffle instance.
-OptionalpreloaderWhether or not to show a splash screen before the SWF has loaded with Ruffle (backwards-compatibility).
-OptionalsplashWhether or not to show a splash screen before the SWF has loaded with Ruffle.
-OptionalmaxMaximum amount of time a script can take before scripting -is disabled.
-OptionalbaseSpecifies the base directory or URL used to resolve all relative path statements in the SWF file. -null means the current directory.
-OptionalmenuIf set to true, the built-in context menu items are visible
-This is equivalent to Stage.showMenu.
-OptionalsalignThis is equivalent to Stage.align.
-OptionalfullControls orientation on mobile in fullscreen mode.
-This is equivalent to the AIR-only method Stage.setAspectRatio.
-OptionalforceIf set to true, movies are prevented from changing the stage alignment.
-OptionalqualityThis is equivalent to Stage.quality.
-OptionalscaleThis is equivalent to Stage.scaleMode.
-OptionalforceIf set to true, movies are prevented from changing the stage scale mode.
-OptionalallowIf set to true, the Stage's displayState can be changed
-OptionalframeSets and locks the player's frame rate, overriding the movie's frame rate.
-OptionalwmodeThe window mode of the Ruffle player.
-This setting controls how the Ruffle container is layered and rendered with other content on the page.
-OptionalplayerThe emulated version of the player.
-This controls the version that is reported to the movie. -null means latest version.
-OptionalpreferredThe 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".
-OptionalpublicThe URL at which Ruffle can load its extra files (i.e. .wasm).
OptionalpolyfillsWhether 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.
OptionalopenThe handling mode of links opening a new website.
-OptionalallowWhich flash networking APIs may be accessed.
-OptionalopenA 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.
-OptionalsocketAn 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.
-OptionalfontAn 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.
-OptionaldefaultThe font names to use for each "default" Flash device font.
-OptionalcredentialAn 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.
OptionalplayerThe player runtime to emulate
-This allows you to emulate Adobe AIR or Adobe Flash Player.
-Optional ExperimentalgamepadAn object mapping gamepad button names to ActionScript key codes.
-With the appropriate mapping pressing a button on the gamepad will look like the corresponding key press to the loaded SWF. -This can be used for adding gamepad support to games that don't support it otherwise.
-An example config for mapping the D-pad to the arrow keys would look like this:
-{ "dpad-up": 38, "dpad-down": 40, "dpad-left": 37, "dpad-right": 39, }
OptionalurlA set of rules that rewrite URLs in both network requests and links.
-They are always scanned in order, and the first one that matches is used.
-A rule either matches using a RegExp (in which case the replacement may use $...),
-or a string (in which case the match and the replacement are always exact).
They are useful when a SWF uses an obsolete URL, in which case -you can rewrite it to something else that works.
-OptionalscrollingSet the scrolling behavior, i.e. how scrolling Flash content affects the web page.
-The original behavior in Flash Player differed across versions, browsers, and wmode settings.
-Defines the names of the fonts to use for each "default" Flash device font.
-The name of each font provided will be used, in priority order.
-For example, defining sans: ["Helvetica", "Arial"] would use Helvetica if present, before trying Arial.
Optionalsans_sans, a Sans-Serif font (similar to Helvetica or Arial)
Optionalserif_serif, a Serif font (similar to Times Roman)
Optionaltypewriter_typewriter, a Monospace font (similar to Courier)
Optionaljapanese_ゴシック, a Japanese Gothic font
Optionaljapanese_等幅, a Japanese Gothic Mono font
Optionaljapanese_明朝, a Japanese Mincho font
Deprecated duration type, use SecsDuration instead. -Based on https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new .
-Represents a host, port and proxyUrl. Used when a SWF file tries to use a Socket.
-Options to load a movie by URL.
-The URL to load a movie from.
-If there is a query portion of this URL, then default parameters -will be extracted from that.
-OptionalallowIf 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.
-OptionalparametersAlso 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.
-OptionalautoplayControls the auto-play behaviour of Ruffle.
-OptionalbackgroundControls 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.
OptionalletterboxControls letterbox behavior when the Flash container size does not -match the movie size.
-OptionalunmuteControls the visibility of the unmute overlay when the player -is started muted.
-OptionalupgradeWhether 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.
OptionalcompatibilityEnable (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.
-OptionalfavorFavor using the real Adobe Flash Player over Ruffle if the browser supports it.
-OptionalwarnThis 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."
-OptionallogConsole logging level.
-OptionalshowIf set to true, the context menu has an option to download -the SWF.
-OptionalcontextWhether or not to show a context menu when right-clicking -a Ruffle instance.
-OptionalpreloaderWhether or not to show a splash screen before the SWF has loaded with Ruffle (backwards-compatibility).
-OptionalsplashWhether or not to show a splash screen before the SWF has loaded with Ruffle.
-OptionalmaxMaximum amount of time a script can take before scripting -is disabled.
-OptionalbaseSpecifies the base directory or URL used to resolve all relative path statements in the SWF file. -null means the current directory.
-OptionalmenuIf set to true, the built-in context menu items are visible
-This is equivalent to Stage.showMenu.
-OptionalsalignThis is equivalent to Stage.align.
-OptionalfullControls orientation on mobile in fullscreen mode.
-This is equivalent to the AIR-only method Stage.setAspectRatio.
-OptionalforceIf set to true, movies are prevented from changing the stage alignment.
-OptionalqualityThis is equivalent to Stage.quality.
-OptionalscaleThis is equivalent to Stage.scaleMode.
-OptionalforceIf set to true, movies are prevented from changing the stage scale mode.
-OptionalallowIf set to true, the Stage's displayState can be changed
-OptionalframeSets and locks the player's frame rate, overriding the movie's frame rate.
-OptionalwmodeThe window mode of the Ruffle player.
-This setting controls how the Ruffle container is layered and rendered with other content on the page.
-OptionalplayerThe emulated version of the player.
-This controls the version that is reported to the movie. -null means latest version.
-OptionalpreferredThe 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".
-OptionalpublicThe URL at which Ruffle can load its extra files (i.e. .wasm).
OptionalpolyfillsWhether 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.
OptionalopenThe handling mode of links opening a new website.
-OptionalallowWhich flash networking APIs may be accessed.
-OptionalopenA 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.
-OptionalsocketAn 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.
-OptionalfontAn 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.
-OptionaldefaultThe font names to use for each "default" Flash device font.
-OptionalcredentialAn 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.
OptionalplayerThe player runtime to emulate
-This allows you to emulate Adobe AIR or Adobe Flash Player.
-Optional ExperimentalgamepadAn object mapping gamepad button names to ActionScript key codes.
-With the appropriate mapping pressing a button on the gamepad will look like the corresponding key press to the loaded SWF. -This can be used for adding gamepad support to games that don't support it otherwise.
-An example config for mapping the D-pad to the arrow keys would look like this:
-{ "dpad-up": 38, "dpad-down": 40, "dpad-left": 37, "dpad-right": 39, }
OptionalurlA set of rules that rewrite URLs in both network requests and links.
-They are always scanned in order, and the first one that matches is used.
-A rule either matches using a RegExp (in which case the replacement may use $...),
-or a string (in which case the match and the replacement are always exact).
They are useful when a SWF uses an obsolete URL, in which case -you can rewrite it to something else that works.
-OptionalscrollingSet the scrolling behavior, i.e. how scrolling Flash content affects the web page.
-The original behavior in Flash Player differed across versions, browsers, and wmode settings.
-These are properties and methods that Flash added to its <embed>/<object> tags.
-These don't seem to be documented in full anywhere, and Ruffle adds them as we encounter some.
-You are discouraged from using these, and they exist only to support legacy websites from decades ago.
Extra methods or properties may appear at any time, due to ExternalInterface.addCallback().
-It may even overwrite existing methods or properties.
Legacy interface to the Ruffle API.
-Please use ruffle() to access a versioned API. -Any of these methods or properties may be replaced by Flash and are not guaranteed to exist.
-Adds a handler for arbitrary "fs commands" from a movie in this player.
-An arbitrary name of a command.
-An arbitrary argument to the command.
-If script access is allowed, a movie may communicate to the page through the ActionScript method fscommand(name, args).
The exact commands and their arguments are more or less arbitrary and up to the movie.
-This is an incredibly deprecated way of communicating between Flash and JavaScript,
-and was deprecated in favor of ExternalInterface in Flash Player 8 (2005).
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.addFSCommandHandler, which supports multiple handlers.
-Any configuration that should apply to this specific player. -This will be defaulted with any global configuration.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.config
-ReadonlyloadedThe effective config loaded with the last call to load().
-If no such call has been made, this will be null.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.loadedConfig
-Indicates the readiness of the playing movie.
-The ReadyState of the player.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.readyState
-The metadata of the playing movie (such as movie width and height).
-These are inherent properties stored in the SWF file and are not affected by runtime changes.
-For example, metadata.width is the width of the SWF file, and not the width of the Ruffle player.
The metadata of the movie, or null if the movie metadata has not yet loaded.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.metadata
-Checks if this player is not suspended.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If no movie is loaded, this method will return true.
-True if this player is playing, false if it's paused or hasn't started yet.
-This method was confusingly named and kept for legacy compatibility. -"Playing" in this context referred to "not being suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.suspended (though inversed!)
-Returns the master volume of the player.
-The volume is linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.volume
-Sets the master volume of the player.
-The volume should be linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.volume
-Checks if this player is allowed to be fullscreen by the browser.
-True if you may call enterFullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.fullscreenEnabled
-Checks if this player is currently fullscreen inside the browser.
-True if it is fullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.isFullscreen
-Sets a trace observer on this flash player.
-The observer will be called, as a function, for each message that the playing movie will "trace" (output).
-The observer that will be called for each trace.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.traceObserver
-Reloads the player, as if you called load with the same config as the last time it was called.
-If this player has never been loaded, this method will return an error.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.reload
-Loads a specified movie into this player.
-This will replace any existing movie that may be playing.
-One of the following:
-The options will be defaulted by the config field, which itself
-is defaulted by a global window.RufflePlayer.config.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.load
-Resumes the movie from suspension.
-The movie will now resume executing any frames, scripts and sounds. -If the movie is not suspended or no movie is loaded, this method will do nothing.
-This method was confusingly named and kept for legacy compatibility. -"Playing" in this context referred to "not being suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.resume
-Exported function that requests the browser to change the fullscreen state if -it is allowed.
-Whether to set to fullscreen or return to normal.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.requestFullscreen or PlayerV1.exitFullscreen.
-Requests the browser to make this player fullscreen.
-This is not guaranteed to succeed, please check fullscreenEnabled first.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.requestFullscreen
-Requests the browser to no longer make this player fullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.exitFullscreen
-Suspends the movie.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If the movie is already suspended or no movie is loaded, this method will do nothing.
-This method was confusingly named and kept for legacy compatibility. -"Pause" in this context referred to "suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.suspend
-Fetches the loaded SWF and downloads it.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.downloadSwf
-Show a dismissible message in front of the player.
-The message shown to the user.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.displayMessage
-Metadata about a loaded SWF file.
-ReadonlywidthThe width of the movie in pixels.
-ReadonlyheightThe height of the movie in pixels.
-ReadonlyframeThe frame rate of the movie in frames per second.
-ReadonlynumThe number of frames on the root timeline of the movie.
-ReadonlyswfThe SWF version of the movie.
-ReadonlybackgroundThe background color of the movie as a hex string, such as "#FFFFFF".
-May be null if the background color is unavailable.
ReadonlyisWhether this movie is an ActionScript 3.0 movie.
-ReadonlyuncompressedUncompressed length in bytes.
-A Ruffle player's HTML element.
-This is either created through window.RufflePlayer.newest().createPlayer(), or polyfilled from a <embed>/<object> tag.
In addition to usual HTML attributes, this player contains methods and properties that belong to both
-the Flash JS API and legacy Ruffle APIs. You are strongly discouraged from using them, and should instead
-use .ruffle(version) to access a versioned API interface.
Adds a handler for arbitrary "fs commands" from a movie in this player.
-An arbitrary name of a command.
-An arbitrary argument to the command.
-If script access is allowed, a movie may communicate to the page through the ActionScript method fscommand(name, args).
The exact commands and their arguments are more or less arbitrary and up to the movie.
-This is an incredibly deprecated way of communicating between Flash and JavaScript,
-and was deprecated in favor of ExternalInterface in Flash Player 8 (2005).
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.addFSCommandHandler, which supports multiple handlers.
-Any configuration that should apply to this specific player. -This will be defaulted with any global configuration.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.config
-ReadonlyloadedThe effective config loaded with the last call to load().
-If no such call has been made, this will be null.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.loadedConfig
-Indicates the readiness of the playing movie.
-The ReadyState of the player.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.readyState
-The metadata of the playing movie (such as movie width and height).
-These are inherent properties stored in the SWF file and are not affected by runtime changes.
-For example, metadata.width is the width of the SWF file, and not the width of the Ruffle player.
The metadata of the movie, or null if the movie metadata has not yet loaded.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.metadata
-Checks if this player is not suspended.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If no movie is loaded, this method will return true.
-True if this player is playing, false if it's paused or hasn't started yet.
-This method was confusingly named and kept for legacy compatibility. -"Playing" in this context referred to "not being suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.suspended (though inversed!)
-Returns the master volume of the player.
-The volume is linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.volume
-Sets the master volume of the player.
-The volume should be linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.volume
-Checks if this player is allowed to be fullscreen by the browser.
-True if you may call enterFullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.fullscreenEnabled
-Checks if this player is currently fullscreen inside the browser.
-True if it is fullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.isFullscreen
-Sets a trace observer on this flash player.
-The observer will be called, as a function, for each message that the playing movie will "trace" (output).
-The observer that will be called for each trace.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.traceObserver
-Access a specific version of the Ruffle API. -If the given version is not supported, an error is thrown.
-Optionalversion: VVersion of the API to access. Defaults to 1.
-Reloads the player, as if you called load with the same config as the last time it was called.
-If this player has never been loaded, this method will return an error.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.reload
-Loads a specified movie into this player.
-This will replace any existing movie that may be playing.
-One of the following:
-The options will be defaulted by the config field, which itself
-is defaulted by a global window.RufflePlayer.config.
Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.load
-Resumes the movie from suspension.
-The movie will now resume executing any frames, scripts and sounds. -If the movie is not suspended or no movie is loaded, this method will do nothing.
-This method was confusingly named and kept for legacy compatibility. -"Playing" in this context referred to "not being suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.resume
-Exported function that requests the browser to change the fullscreen state if -it is allowed.
-Whether to set to fullscreen or return to normal.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.requestFullscreen or PlayerV1.exitFullscreen.
-Requests the browser to make this player fullscreen.
-This is not guaranteed to succeed, please check fullscreenEnabled first.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.requestFullscreen
-Requests the browser to no longer make this player fullscreen.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.exitFullscreen
-Suspends the movie.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If the movie is already suspended or no movie is loaded, this method will do nothing.
-This method was confusingly named and kept for legacy compatibility. -"Pause" in this context referred to "suspended", and not the Flash concept of playing/paused.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.suspend
-Fetches the loaded SWF and downloads it.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.downloadSwf
-Show a dismissible message in front of the player.
-The message shown to the user.
-Please use ruffle() to access a versioned API. -This method may be replaced by Flash and is not guaranteed to exist. -A direct replacement is PlayerV1.displayMessage
-Returns the movies loaded process, in a percent from 0 to 100. -Ruffle may just return 0 or 100.
-a value from 0 to 100, inclusive.
-Any configuration that should apply to this specific player. -This will be defaulted with any global configuration.
-ReadonlyloadedThe effective config loaded with the last call to load().
-If no such call has been made, this will be null.
The metadata of the playing movie (such as movie width and height).
-These are inherent properties stored in the SWF file and are not affected by runtime changes.
-For example, metadata.width is the width of the SWF file, and not the width of the Ruffle player.
The metadata of the movie, or null if the movie metadata has not yet loaded.
Returns the master volume of the player.
-The volume is linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Sets the master volume of the player.
-The volume should be linear and not adapted for logarithmic hearing.
-The volume. 1.0 is 100% volume.
-Checks if this player is allowed to be fullscreen by the browser.
-True if you may call requestFullscreen.
-Checks if this player is currently fullscreen inside the browser.
-True if it is fullscreen.
-Checks if this movie is suspended.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If no movie is loaded, this method will return true.
-true if the movie is suspended or does not exist, false if the movie is playing
Sets a trace observer on this flash player.
-The observer will be called, as a function, for each message that the playing movie will "trace" (output).
-The observer that will be called for each trace.
-Adds a handler for arbitrary "fs commands" from a movie in this player.
-A command handler to receive fscommands.
An arbitrary name of a command.
-An arbitrary argument to the command.
-If script access is allowed, a movie may communicate to the page through the ActionScript method fscommand(name, args).
The exact commands and their arguments are more or less arbitrary and up to the movie.
-This is an incredibly deprecated way of communicating between Flash and JavaScript,
-and was deprecated in favor of ExternalInterface in Flash Player 8 (2005).
Loads a specified movie into this player.
-This will replace any existing movie that may be playing.
-One of the following:
-The options will be defaulted by the config field, which itself
-is defaulted by a global window.RufflePlayer.config.
Requests the browser to make this player fullscreen.
-This is not guaranteed to succeed, please check fullscreenEnabled first.
-Requests the browser to no longer make this player fullscreen.
-Suspends the movie.
-A suspended movie will not execute any frames, scripts or sounds. -This movie is considered inactive and will not wake up until resumed. -If the movie is already suspended or no movie is loaded, this method will do nothing.
-Fetches the loaded SWF and downloads it.
-Show a dismissible message in front of the player.
-The message shown to the user.
-Calls an External Interface callback with the given name and arguments.
-This will call any ActionScript code assigned to the given name.
-If no such External Interface callback exists with the given name, this method silently fails and returns undefined.
Name of the callback to call.
-Any arguments to pass to the callback.
-Any value returned by the callback.
-Options to use with this specific installation of Ruffle.
-This is mostly to provide a way to configure environmental settings, like using
-onFirstLoad to potentially configure webpack prior to loading wasm files.
Represents this particular version of Ruffle.
-Multiple APIs can be instantiated from different sources; e.g. an "extension" -version, versus a "local" version. This expresses to the Public API -negotiator (see PublicAPI) what this particular version of Ruffle is and -how to control it.
-The version of this particular API, as a string in a semver compatible format.
-Start up the polyfills.
-Do not run polyfills for more than one Ruffle source at a time.
-Polyfill the plugin detection.
-This needs to run before any plugin detection script does.
-Create a Ruffle player element using this particular version of Ruffle.
-The player element. This is a DOM element that may be inserted -into the current page as you wish.
-Any options used for loading a movie.
+Controls the auto-play behaviour of Ruffle.
+Also 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.
+Controls the visibility of the unmute overlay when the player + is started muted.
+Whether 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.
Generated using TypeDoc
+The configuration object to control Ruffle's behaviour on the website + that it is included on.
+Controls the auto-play behaviour of Ruffle.
+Also 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.
+Whether 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.
The URL at which Ruffle can load its extra files (ie .wasm).
[publicPaths] is consulted first for a source-specific URL, + with this field being a fallback.
+A map of public paths from source name to URL.
+Controls the visibility of the unmute overlay when the player + is started muted.
+Whether 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.
Generated using TypeDoc
+Options to load a movie by a data stream.
+Controls the auto-play behaviour of Ruffle.
+The data to load a movie from.
+Also 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.
+Controls the visibility of the unmute overlay when the player + is started muted.
+Whether 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.
Generated using TypeDoc
+Options to load a movie by URL.
+Controls the auto-play behaviour of Ruffle.
+Also 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.
+Controls the visibility of the unmute overlay when the player + is started muted.
+Whether 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.
The URL to load a movie from.
+If there is a query portion of this URL, then default parameters + will be extracted from that.
+Generated using TypeDoc
+A fake plugin designed to trigger Flash detection scripts.
+The shadow template which is used to fill the actual Ruffle player element + on the page.
+Copies data into the given audio channel.
+ This is necessary because Safari does not support AudioBuffer.copyToChannel.
Install a fake plugin such that detectors will see it in navigator.plugins.
This function takes care to check if the existing implementation of
+ navigator.plugins already accepts fake plugin entries. If so, it will use
+ that version of the plugin array. This allows the plugin polyfill to compose
+ across multiple plugin emulators with the first emulator's polyfill winning.
The plugin to install
+Returns whether the given filename ends in a known flash extension.
+The filename to test.
+True if the filename is a flash movie (swf or spl).
+Obtain an instance of Ruffle.
This function returns a promise which yields Ruffle asynchronously.
A ruffle constructor that may be used to create new Ruffle + instances.
+Lookup a previously registered custom element.
+The returned object will have name, class, and internal_name
+ properties listing the external name, implementing class, and internal name
+ respectively.
The internal element name, previously used to + register the element with the private registry.
+The element data in the registry, or null if there is + no such element name registered.
+Polyfills the detection of Flash plugins in the browser.
+Polyfills legacy Flash content on the page.
+Whether or not Ruffle is running as a browser's extension.
+Attempt to discover the public path of the current Ruffle source. This can + be used to configure Webpack.
+We have several points of configuration for how the Ruffle public path can + be determined:
+window.RufflePlayer.config.publicPaths.local = "/dist/";window.RufflePlayer.config.publicPath = "/dist/";The window.RufflePlayer.config object.
The name of the source.
+The public path for the given source.
+Register a custom element.
+This function is designed to be tolerant of naming conflicts. If + registration fails, we modify the name, and try again. As a result, this + function returns the real element name to use.
+Calling this function multiple times will not register multiple elements. + We store a private registry mapping internal element names to DOM names. + Thus, the proper way to use this function is to call it every time you are + about to work with custom element names.
+ +The internal name of the element.
+The class of the element.
+You must call this function with the same class every time.
+The actual element name.
+Generated using TypeDoc
+The Config module contains all the types that Ruffle uses for movie configs.
-The main interface of interest here is BaseLoadOptions, which you can apply to window.RufflePlayer.config
-to set the default configuration of all players.
The Player module contains the actual PlayerElement and the various interfaces that exist to interact with the player.
-The Setup module contains the interfaces and methods needed to install Ruffle onto a page, -and create a Player.PlayerElement with the latest version of Ruffle available.
-This is primarily relevant to users of ruffle-core as a npm module, as the "selfhosted" version of Ruffle preinstalls itself,
-and without type checking the interfaces here are of limited use.
For users of ruffle-core as a npm module, you are encouraged to call installRuffle once during page load to
-make the ruffle-core library register itself as a version of Ruffle on the page.
Multiple sources of Ruffle may exist - for example, the Ruffle browser extension also installs itself on page load.
-For this reason, you are required to call window.RufflePlayer.newest() (for example) to grab the latest SourceAPI,
-from which you can create a Player.PlayerElement via SourceAPI.createPlayer.
Any new duration-based setting should use 'number' or 'SecsDuration' for its type, -instead of this type.
-Non-negative duration in seconds.
-ConstConstStores build information about this specific version of the ruffle-core library.
It does not represent the version of Ruffle that may be in use by the page (for example, if a browser extension overrides it).
-
Represents the Ruffle public API.
-The public API exists primarily to allow multiple installations of Ruffle on a -page (e.g. an extension install and a local one) to cooperate. In an ideal -situation, all Ruffle sources on the page install themselves into a single -public API, and then the public API picks the newest version by default.
-This API is versioned, in case we need to upgrade it. However, it must be -backwards- and forwards-compatible with all known sources.
-