## SwfdecSystem SwfdecSystem — object holding system settings |

## Synopsis

    #include <swfdec/swfdec.h>

                        SwfdecSystem;
    SwfdecSystem*       swfdec_system_new                   (void);

## Object Hierarchy

      GObject
       +----SwfdecSystem

## Properties

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

## 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.

## Details

### SwfdecSystem

    typedef struct _SwfdecSystem SwfdecSystem;

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

### 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

## Property Details

### The `"color-mode"` property

      "color-mode"               gchar*                : Read / Write / Construct

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

Default value: "color"

### The `"debugger"` property

      "debugger"                 gboolean              : Read / Write / Construct

TRUE if this player is supposed to be a debugger.

Default value: FALSE

### The `"dpi"` property

      "dpi"                      guint                 : Read / Write / Construct

DPI setting of screen.

Default value: 96

### The `"language"` property

      "language"                 gchar*                : Read / Write / Construct

ISO 639-1 language code.

Default value: "en"

### The `"manufacturer"` property

      "manufacturer"             gchar*                : Read / Write / Construct

string describing the manufacturer of this system.

Default value: "Macromedia Windows"

### The `"os"` property

      "os"                       gchar*                : Read / Write / Construct

description of the operating system.

Default value: "Windows XP"

### The `"os-type"` property

      "os-type"                  gchar*                : Read / Write / Construct

the operating system type: WIN, LIN or MAC.

Default value: "WIN"

### The `"pixel-aspect-ratio"` property

      "pixel-aspect-ratio"       gdouble               : Read / Write / Construct

the screen's pixel aspect ratio.

Allowed values: >= G_MINDOUBLE

Default value: 1

### The `"player-type"` property

      "player-type"              gchar*                : Read / Write / Construct

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

Default value: "StandAlone"

### The `"screen-height"` property

      "screen-height"            guint                 : Read / Write / Construct

height of the screen in pixels.

Default value: 768

### The `"screen-width"` property

      "screen-width"             guint                 : Read / Write / Construct

width of the screen in pixels.

Default value: 1024

### The `"server-manufacturer"` property

      "server-manufacturer"      gchar*                : Read / Write / Construct

manufacturer of this system as used in serverString.

Default value: "Adobe Windows"

### The `"utc-offset"` property

      "utc-offset"               gint                  : Read / Write / Construct

Difference between UTC and local timezone in minutes.

Allowed values: [-720,720]

Default value: 0

### The `"version"` property

      "version"                  gchar*                : Read / Write / Construct

version string.

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

## See Also

SwfdecPlayer