Using VMRC Property Value Constants
To use the VMRC API with the VMRC browser plug-in, you must set up the necessary property value constants that the API methods require. In your web Application JavaScript code, you must use these property value constants when invoking VMRC API methods or handling callback signals.
The syntax of the property value constants vary depending on which web browser you use with VMRC browser plug-in.
In Internet Explorer, the property value constants are exposed as dictionaries corresponding to each property value class name. For example, for the VMRC_ConnectionState variable, a value of VMRC_CS_CONNECTED is represented by the following JavaScript code in Internet Explorer:
vmrc.VMRC_ConnectionState(“VMRC_CS_CONNECTED”)
In Firefox or Chrome, the property value constants directly correspond to the property name. For the VMRC_ConnectionState variable, a value of VMRC_CS_CONNECTED is represented by the following JavaScript code in Firefox or Chrome:
vmrc.VMRC_ConnectionState.VMRC_CS_CONNECTED
The VMRC SDK contains example JavaScript code that abstracts these differences in handling property value constants. When developing your Web application, you can use the example code to ensure that the VMRC property value constants are accessed in a uniform manner, regardless of which Web browser the user runs.