Monitor

The Monitor object defines a monitor's width, height, and x and y position properites.

Example:

var monitor1Width  = window.dapi.displays.monitor1.width;
var monitor1Height = window.dapi.displays.monitor1.height;

Member Summary

Public Members

Height of the monitor in pixels.

Width of the monitor in pixels.

X position of the monitor.

Y position of the monitor.

Public Members

public height: number source

Height of the monitor in pixels. For example, for an HD monitor, the value is 1080.

public width: number source

Width of the monitor in pixels. For example, for an HD monitor, the value is 1920.

public x: number source

X position of the monitor. For example, if 2 HD monitors are connected to the Dolby Voice Hub, the monitor1 value is 0 and the monitor2 value is 1920. The assumption is that monitors are mounted side-by-side, so the image is stretched horizontally across both monitors.

public y: number source

Y position of the monitor. For example, if 2 HD monitors are connected to the Dolby Voice Hub, the monitor1 value is 0 and the monitor2 value is also 0. The assumption is that monitors are mounted side-by-side, so the image does not change vertically.