How to stream applications¶
You can stream applications using the Anbox Cloud dashboard or your custom stream client. You can also stream applications by launching an instance with streaming enabled, using the amc
CLI.
If you are using the amc
CLI, you can use the --enable-streaming
option at the time of launching the instance:
amc launch --enable-streaming <application_id>
When the --enable-streaming
option is specified, the Anbox Management Service (AMS) automatically creates a streaming session for the instance. You can find the id of the session as a tag on the instance in the format session=<id>
.
To further customise the streaming configuration, use the following arguments:
--display-size
--display-density
--fps
For example, to create an instance with a 1080p resolution, a frame rate of 60 and a DPI of 120, run:
amc launch --enable-streaming --display-size=1920x1080 --display-density=120 --fps=60 <application_id>
The dashboard has in-browser streaming capabilities through WebRTC. It uses the Anbox Cloud Streaming SDK.
When creating an instance, make sure you select the Enable Streaming capability to be able to stream your application. You can also set the desired streaming attributes using the Virtual display options available for an instance.
You can start a streaming session for any of the successfully created applications. Once the associated instance is created and ready, click Stream ( ) to start the stream.
To understand how the streaming stack of Anbox Cloud works, see Application streaming.
Streaming statistics
You can view the streaming statistics for your running sessions by selecting the Statistics button on the session. The statistics display on the right pane and also have a download option to download the statistics in a .csv
format for further analysis.
The downloaded .csv
file has the following statistics:
Statistic |
Description |
---|---|
|
Date and time in ISO 8601 format |
|
Current round-trip time of the network |
|
The amount of video data that the session can handle per second |
|
Total video data received |
|
Video frames per second |
|
Time taken to extract video |
|
Loss of transmitted video data during streaming |
|
Average jitter buffer delay in video transmission |
|
Number of video packets received |
|
Number of video packets lost |
|
The amount of audio data that the session can handle per second |
|
Total audio data received during streaming |
|
Total number of audio samples received |
|
Loss of transmitted audio data during streaming |
|
Average jitter buffer delay in audio transmission |
|
Number of audio packets received |
|
Number of audio packets lost |
Sharing a streaming session
To share your stream with users without an account, click Set up sharing ( ) on the Instances page.
Set your stream title and expiration details and generate a link that can be shared with others.