Readonly
loadedThe effective config loaded with the last call to load()
.
If no such call has been made, this will be null
.
Indicates the readiness of the playing movie.
The ReadyState
of the player.
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 fscommand
s.
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.
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.
Any configuration that should apply to this specific player. This will be defaulted with any global configuration.