init

Top  Previous  Next

The init method initializes the thinVNC object and receive several optional arguments as follows:

 

Javascript Syntax

 thinvnc.init([

         divId:null,

         mouseControl: true,

         kbdControl: true,

         pixelFormat: 0,

         grayscale: false,

         scaled: true, 

         monitor: 0,

 ])

 

 

Arguments

 

divId

Id of the div element that will display the remote desktop. Defaults to null.

string

mouseControl

This parameter allows the session to be started with or without remote mouse control. Defaults to true.

boolean

kbdControl

This parameter allows the session to be started with or without remote keyboard control. Defaults to true.

boolean

pixelFormat

This parameter controls the initial color depth. Valid values are 0 for 16-bit/32-bit (depending on server settings) color depth and 1 for 256-bit color depth. Default: 0.

int

grayscale

This parameter allows  the session to be started in grayscale. Default: false.

boolean

scaled

This parameter controls whether the remote desktop view is stretched when it doesn't fit in the client area. Defaults to true.

boolean

monitor

This parameter controls which monitor will be visualized. Defaults to 0. Set to -1 to see all monitors at once.

integer

 

See also

See also the connect method.