Anbox can make use of different platforms to customize its behavior. Anbox Cloud currently supports 3 platforms. Which one to use depends on your needs.
||A headless-gl platform. No rendering is performed. No audio input/output. Useful for functional tests. It’s used by default if no platform is specified when launching a container.|
||Full-featured WebRTC based streaming platform. Includes driver and integration for AMD and NVidia GPUs as well as LLVMPipe based software rendering if no GPU is detected. Support audio input/output.|
||Software Rasterization platform. A LLVMPipe based software rendering platform. Useful for visual tests. No audio input/output.|
Instructing a container to use a platform is done through the
-p) flag when launching a container, e.g.
$ amc launch -p swrast <application>
Display Settings Configuration
Anbox Cloud provides a way of inserting user data to Android container upon its launch which can configure the display settings for swrast platform.
By default when launching a container on the swrast platform without specifying the display settings through user data, the following display specification will be used:
If you want to change the display settings of Android container, you need to provide a combination of a numeric formatting string as follows:
<Display width>,<Display height>,<FPS>,<Display Density>
The first two fields which imply display width and display height respectively are required, however the latter two are optional.
And when launching a container, supply the display settings via user data:
$ amc launch --userdata="960,720,30,120" -p swrast <application>
Then the supplied display setting will be applied after the container gets started.
When using the Stream Gateway, the
webrtc platform is automatically used when launching containers. You don’t need to perform additional steps. Launching a container with the webrtc platform can be done via Stream Gateway UI.