Rate This Document
Findability
Accuracy
Completeness
Readability

Software Architecture

Figure 1 Video stream cloud phone architecture

The video stream engine consists of a server and a client. The server provides functions such as image acquisition and encoding, and the client decodes and plays video data. In some scenarios, functions such as obtaining and injecting user touch data, and obtaining and playing audio data are also supported.

Module

Function

Capture module

Obtains image data. The output format is YUV420p.

Encoding module

Encodes YUV data obtained by the capture module into H.264 or H.265 streams and sends the stream receipt to the client through network communication APIs.

Decoding module

Receives video streams from the server, decodes and plays H.264/H.265 streams.

Audio data collection

Obtains audio data and outputs audio data in OPUS or PCM format.

Audio decoding

Decodes and plays audio data in OPUS or PCM format.

Touch data distribution

Injects touch data into the Android cloud phone on the server.

Touch data collection

Obtains touch data.