I try to get an IP camera view on wifi camera board, directly, using nexus s phone. Using VideoView, I can get the video on the Internet, http and rtsp address, but I can't get the camera image on the board(rtsp board) through direct wifi connection.
below is the simple and short code, easy to understand, and error msg. plz, help me. thanks
String vidAddress = "rtsp://192.168.100.1/cam1/h264/";
VideoView vidView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
vidView = (VideoView) findViewById(R.id.myVideo);
Uri vidUri = Uri.parse(vidAddress);
vidView.setVideoURI(vidUri);
vidView.requestFocus();
vidView.start();
}
03-16 19:07:26.091 27449-27449/com.example.administrator.rtspapplication D/MediaPlayer﹕ Couldn't open file on client side, trying server side
03-16 19:07:26.450 27449-27453/com.example.administrator.rtspapplication D/dalvikvm﹕ GC_CONCURRENT freed 176K, 3% free 8340K/8583K, paused 143ms+3ms, total 182ms
03-16 19:07:26.450 27449-27449/com.example.administrator.rtspapplication D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 6ms
03-16 19:07:26.524 27449-27449/com.example.administrator.rtspapplication I/Choreographer﹕ Skipped 72 frames! The application may be doing too much work on its main thread.
03-16 19:07:27.110 27449-27449/com.example.administrator.rtspapplication D/MediaPlayer﹕ getMetadata
03-16 19:07:28.309 27449-27461/com.example.administrator.rtspapplication W/IMediaDeathNotifier﹕ media server died
03-16 19:07:28.309 27449-27461/com.example.administrator.rtspapplication E/MediaPlayer﹕ error (100, 0)
03-16 19:07:28.317 27449-27460/com.example.administrator.rtspapplication W/AudioSystem﹕ AudioFlinger server died!
03-16 19:07:28.434 27449-27449/com.example.administrator.rtspapplication E/MediaPlayer﹕ Error (100,0)
03-16 19:07:28.434 27449-27449/com.example.administrator.rtspapplication D/VideoView﹕ Error: 100,0