You can use the getVersion() API method to obtain the specific version of the VMRC browser plug-in and VMRC SDK that is installed on the local client system. You can call
getVersion() at any time after loading the VMRC plug-in, even before you start the plug-in.
The getVersion() method is present in every version of the VMRC API. For detailed information on calling
getVersion(), see
General-Purpose API Methods.
The isReadyToStart() method takes no parameters and returns a boolean value. A return value of
true indicates that the VMRC browser plug-in has been loaded and is ready to start. You may call
startup() once the
isReadyToStart() method returns a value of
true.
You must use the startup() API method to start the processes in the VMRC browser plug-in. When you call the startup() method, you also set the modes in which the VMRC browser plug-in can operate. The available modes are Mouse-Keyboard-Screen (MKS) mode and Devices mode.
You can choose to start the VMRC browser plug-in with one or both of the available mode settings. The mode parameter to the
startup() API method accepts a mask of values. You can include one or both mode settings in the value that you pass for the
mode parameter by using the bitwise
or (|) operator.
You start the VMRC browser plug-in using MKS mode by calling the startup() method and including the property value constant
VMRC_Mode.VMRC_MKS in the
mode parameter.
You start the VMRC browser plug-in using Devices mode by calling the startup() method and including the property value constant
VMRC_Mode.VMRC_DEVICES in the
mode parameter.
|
|
|
|
VMRC_Mode property value constant; one or both of the values VMRC_Mode.VMRC_MKS and VMRC_Mode.VMRC_DEVICES (both can be conjoined using the | operator)
|
The mode parameter is specified at startup, and determines the operational mode of the VMRC plug-in instance for the lifetime of its connection. The plug-in can operate in the following modes.
VMRC_Mode.VMRC_MKS: In MKS mode, guest screen contents are displayed and the user can interact with the guest.
VMRC_Mode.VMRC_DEVICES: In Devices mode, the user can manage remote device backings and their mappings to virtual machine devices.
|
|
VMRC_MessageMode property value constant; VMRC_MessageMode.VMRC_EVENT_MESSAGES, VMRC_MessageMode.VMRC_DIALOG_MESSAGES, VMRC_MessageMode.VMRC_NO_MESSAGES
|
The msgmode parameter is specified at startup, and determines by which mode messages are delivered from the plug-in to the containing document element in your Web application.
The VMRC_MessageMode.VMRC_DIALOG_MESSAGE and VMRC_MessageMode.VMRC_NO_MESSAGES values are not supported on the Linux operating system.
|
|
|
|
The startup() method returns a string value, which is implementation-specific and opaque to the client.
Advanced Configuration Flags for VMRC startup() Method shows the available advanced configuration flags that you can use in the
startup() method’s
advancedconfig parameter. To use a flag, you must include the string “
{flag}=true” in the
advancedconfig parameter, where
{flag} is your flag of choice. You can include multiple flags by separating each flag and value with a semicolon.
An example call to startup() in the Firefox browser might appear as follows: