修复了无法正常控制的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", "control is :++++" + CtrlIp);
Log.d("wifirobot", "CtrlPort is :++++" + CtrlPort); Log.d("wifirobot", "CtrlPort is :++++" + CtrlPort);
r.GetCameraIP(CameraIp); r.GetCameraIP(CameraIp);
InitSocket();
rockerView = new RockerView(this,socketWriter,this.getApplicationContext(),null); rockerView = new RockerView(this,socketWriter,this.getApplicationContext(),null);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(1000,1000); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(1000,1000);
addContentView(rockerView,params); addContentView(rockerView,params);
@ -85,13 +86,6 @@ public class MyVideo extends Activity {
MyVideo.this.startActivity(intent1); MyVideo.this.startActivity(intent1);
}); });
new Timer().schedule(new TimerTask() {
@Override
public void run() {
InitSocket();
}
},1000);
} }
public void InitSocket() { public void InitSocket() {

Loading…
Cancel
Save