Setting a Callback Object of the Video Stream Engine
Application Scenario
Set a callback object of the video stream engine.
Prerequisites
- A video stream engine JNI callback object has been created.
- The activity has implemented the NativeListener interface function.
Development Process
- Call the callback initialization interface function.
- Set a callback object.
Encoding Instance
public class Activity implements NativeListener {
private JniCallback jniCallback = new JniCallback();
protected void onCreate(Bundle savedInstanceState) {
jniCallback.setNativeCallback();
jniCallback.setNativeListener(Activity.this);
}
}
Parent topic: Development Process of the Video Stream Engine Client