SwfdecSystem

SwfdecSystem — object holding system settings

Functions

Properties

gchar * color-mode Read / Write / Construct
gboolean debugger Read / Write / Construct
guint dpi Read / Write / Construct
gchar * language Read / Write / Construct
gchar * manufacturer Read / Write / Construct
gchar * os Read / Write / Construct
gchar * os-type Read / Write / Construct
gdouble pixel-aspect-ratio Read / Write / Construct
gchar * player-type Read / Write / Construct
guint screen-height Read / Write / Construct
guint screen-width Read / Write / Construct
gchar * server-manufacturer Read / Write / Construct
gint utc-offset Read / Write / Construct
gchar * version Read / Write / Construct

Types and Values

struct SwfdecSystem

Object Hierarchy

    GObject
    ╰── SwfdecSystem

Includes

#include <swfdec/swfdec.h>

Description

This object is used to provide information about the system Swfdec currently runs on.

Almost all of this information can be categorized into three types: Information about the current playback engine like manufacturer or version, information about the current operating system and capabilities of the output capabilities of the System like screen size.

The information provided by this object is used by the Actionscript System.capabilities.Query() function that is usually only run once during initialization of the Flash player. If you want to set custom properties and have them affect a running SwfdecPlayer, you should change them before the player gets initialized.

Note that the System.capabilites object in Flash provides more functionality than provided by this object. That information can be and is determined automatically by Swfdec.

Functions

swfdec_system_new ()

SwfdecSystem *
swfdec_system_new (void);

Creates a new SwfdecSystem object using default settings. These settings are mirroring the most common settings used by a Flash player. Currently this is equivalent to a Flash player running on Windows XP.

Returns

a new SwfdecSystem object

Types and Values

struct SwfdecSystem

struct SwfdecSystem;

This is the object used for holding information about the current system. See the introduction for details.

Property Details

The “color-mode” property

  “color-mode”               gchar *

"color", "gray" or "bw".

Flags: Read / Write / Construct

Default value: "color"


The “debugger” property

  “debugger”                 gboolean

TRUE if this player is supposed to be a debugger.

Flags: Read / Write / Construct

Default value: FALSE


The “dpi” property

  “dpi”                      guint

DPI setting of screen.

Flags: Read / Write / Construct

Default value: 96


The “language” property

  “language”                 gchar *

ISO 639-1 language code.

Flags: Read / Write / Construct

Default value: "en"


The “manufacturer” property

  “manufacturer”             gchar *

string describing the manufacturer of this system.

Flags: Read / Write / Construct

Default value: "Macromedia Windows"


The “os” property

  “os”                       gchar *

description of the operating system.

Flags: Read / Write / Construct

Default value: "Windows XP"


The “os-type” property

  “os-type”                  gchar *

the operating system type: WIN, LIN or MAC.

Flags: Read / Write / Construct

Default value: "WIN"


The “pixel-aspect-ratio” property

  “pixel-aspect-ratio”       gdouble

the screen's pixel aspect ratio.

Flags: Read / Write / Construct

Allowed values: >= G_MINDOUBLE

Default value: 1


The “player-type” property

  “player-type”              gchar *

"StandAlone", "External", "PlugIn" or "ActiveX".

Flags: Read / Write / Construct

Default value: "StandAlone"


The “screen-height” property

  “screen-height”            guint

height of the screen in pixels.

Flags: Read / Write / Construct

Default value: 768


The “screen-width” property

  “screen-width”             guint

width of the screen in pixels.

Flags: Read / Write / Construct

Default value: 1024


The “server-manufacturer” property

  “server-manufacturer”      gchar *

manufacturer of this system as used in serverString.

Flags: Read / Write / Construct

Default value: "Adobe Windows"


The “utc-offset” property

  “utc-offset”               gint

Difference between UTC and local timezone in minutes.

Flags: Read / Write / Construct

Allowed values: [-720,720]

Default value: 0


The “version” property

  “version”                  gchar *

version string.

Flags: Read / Write / Construct

Default value: "WIN 9,0,999,0"

See Also

SwfdecPlayer