Create an instance with multiple displays¶
This guide shows you how to create an instance with multiple displays. A multi-display instance can have up to four displays, each with its own resolution, frame rate and density.
Multi-display is supported only with Virtualized Android. For an overview of multi-display support in Anbox Cloud, see Multi-display.
To create an instance with multiple displays, use amc launch with Virtualized Android image, such as resolute:android16-cf:amd64 and one --display flag per display. You can configure up to four displays per instance, including the primary display.
Each --display flag takes a comma-separated list of key=value pairs, in the following format:
--display=width=<W>,height=<H>[,dpi=<D>,fps=<FPS>]
widthandheightare required and must each be greater than0.dpiis optional. If not set, it defaults to320.fpsis optional and must be between0and60. If not set, it defaults to60, or to30if the instance has no GPU slots assigned.
--display cannot be combined with the legacy --display-size, --display-density, and --fps flags, which only configure a single display.
For example, the following command creates an instance with four displays for streaming, each with its own resolution, density and frame rate:
amc launch resolute:android16-cf:amd64 --enable-streaming --name multi-display-instance --display=width=1280,height=720,fps=60 --display=width=480,height=640,dpi=120 --display=width=800,height=600,fps=30 --display=width=1280,height=720,fps=30
To create an instance with multiple displays:
Go to the Instances page, click Create instance.
In the Source section:
From the Create the instance from dropdown, select
Image.From the Image dropdown, select a Virtualized Android image, such as
resolute:android16-cf:amd64.
Expand the Displays section.
Click Add display to add another display. You can configure up to four displays in total.
For each display, configure the following settings as required:
Screen resolution
Frame rate
Display density (DPI)
Screen orientation
Optionally, configure the remaining fields in the instance creation form.
Click Create and start.
Alternatively, you can create a multi-display instance directly from the Images page. Locate a euphotic variant image and click the Create instance shortcut. This opens the instance creation form with Create the instance from and Image fields already populated with the selected image.
Note
You cannot add, edit, or remove displays after creating the instance.
Stream the displays
Once the multi-display instance is running, click Stream (
) to open the Stream page. The page shows all the configured displays and provides the Stream controls bar for interacting with the multi-display instance.
When the Stream page first opens, no display is focused. Interact with a display to focus it. The display-specific controls in the Stream controls bar apply only to the focused display. Until a display is focused, controls that require one remain unavailable.
For example, when Capture keyboard input is enabled, keyboard input is sent to the focused display.
Adjust the view
Use Zoom in (
) and Zoom out (
), or use the mouse wheel, to adjust the view. You can pan across the stream page to move around the display area.
To fit all displays within the view, click Fit all (
).
To fit a single display within the view, hover over it and click Fit (
). The other displays are temporarily hidden. To return to the view showing all displays, click Show all (
).
Note
Rotate left, Rotate right, and Resize are not supported for multi-display instances.