Rate This Document
Findability
Accuracy
Completeness
Readability

Obtaining Engine Statistics

Application Scenario

Obtain the runtime statistics of the video stream engine.

Prerequisites

The video stream engine is started successfully.

Development Process

Start a thread to call the getStatistics interface function in polling mode.

Encoding Instance

public class Activity implements BaseActivity {
    protected void onCreate(Bundle savedInstanceState) {
       threadPool.submit(new StartPhoneRunnable());
    }
}
public class StartPhoneRunnable {
    @Override
    public void run() {
        while (!stopFlag) {
            // Periodically query engine statistics.
            String nativeString = engine.getStatistics();             
        }
    }
}