修复了无法正常控制的bug

chenghonghao_branch
MikkoAyaka 2 years ago
parent bab0ee05e7
commit 3f70aa065a

@ -65,6 +65,7 @@ public class MyVideo extends Activity {
Log.d("wifirobot", "control is :++++" + CtrlIp);
Log.d("wifirobot", "CtrlPort is :++++" + CtrlPort);
r.GetCameraIP(CameraIp);
InitSocket();
rockerView = new RockerView(this,socketWriter,this.getApplicationContext(),null);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(1000,1000);
addContentView(rockerView,params);
@ -85,13 +86,6 @@ public class MyVideo extends Activity {
MyVideo.this.startActivity(intent1);
});
new Timer().schedule(new TimerTask() {
@Override
public void run() {
InitSocket();
}
},1000);
}
public void InitSocket() {

Loading…
Cancel
Save