HM30 User Manual v1.3
102
2024 SIYI Technology Copyright
mSurfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {
@Override
public void surfaceCreated(SurfaceHolder holder) {
Logcat.d(TAG, "onSurfaceCreated...");
mConnectionManager.notifySurfaceCreate(holder.getSurface());
}
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width
, int height) {
}
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
mConnectionManager.notifySurfaceDestroy(holder.getSurface());
}
});
⚫ Dual-Channel FPV Display:
Dual-channel FPV display supports Ethernet connection only. It does not support AOA or USB
connection. For dual-channel FPV display, we should configure the IP addresses first, then create
two “SurfaceView” for image display. Whether the second video stream is required or not can be
judged by the connection type through connection status. You can refer to “demo” for detail.
⚫ When you quit the application, please do not forget to call the
“UsbConnectionManager.release()” method.
For more detail, please refer to the codes in “demo”.
5.6.2 Interface Instructions
ConnectionManager