|
|
@ -65,10 +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);
|
|
|
|
|
|
|
|
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(1000,1000);
|
|
|
|
|
|
|
|
addContentView(rockerView,params);
|
|
|
|
|
|
|
|
TakePhotos.setOnClickListener(arg0 -> {
|
|
|
|
TakePhotos.setOnClickListener(arg0 -> {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
if (null != Constant.handler) {
|
|
|
|
if (null != Constant.handler) {
|
|
|
@ -86,6 +83,7 @@ public class MyVideo extends Activity {
|
|
|
|
MyVideo.this.startActivity(intent1);
|
|
|
|
MyVideo.this.startActivity(intent1);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
new Thread(()->InitSocket()).run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void InitSocket() {
|
|
|
|
public void InitSocket() {
|
|
|
@ -105,6 +103,9 @@ public class MyVideo extends Activity {
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
// TODO Auto-generated catch block
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rockerView = new RockerView(this,socketWriter,this.getApplicationContext(),null);
|
|
|
|
|
|
|
|
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(1000,1000);
|
|
|
|
|
|
|
|
addContentView(rockerView,params);
|
|
|
|
//Toast.makeText(this,"³õʼ»¯ÍøÂçʧ°Ü£¡"+e.getMessage(),Toast.LENGTH_LONG).show();
|
|
|
|
//Toast.makeText(this,"³õʼ»¯ÍøÂçʧ°Ü£¡"+e.getMessage(),Toast.LENGTH_LONG).show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|