I tried to work on it today, but I didn’t succeed.
Why is that?
The current phenomenon is as follows.
- CCTV Hikvision Model
- PC(JAVA Mode) : Work
- SmartPhone(Android Mode) : Work
- CCTV H Model
- PC(JAVA Mode) : Work
- Smartphone(Android Mode) : not Work
I don’t understand this part too much.
Also, ‘H Model CCTV’ is not visible even when ‘network streaming’ is performed through VLC media.
Both PC and Android have the same source code, but why does the operation differ depending on the ‘CCTV Model’?
conn = (HttpURLConnection)url.openConnection();
// conn.setRequestProperty("Authorization", authorizationHeaderValue);
System.out.println("run-2-1");
//conn.setRequestMethod("GET");
//conn.setRequestProperty("Origin", "http://211.104.181.146:10111");
//conn.setRequestProperty("Accept", "application/xml");
//conn.setRequestProperty("Content-Type", "text/html"); //
// conn.setDoOutput(true);
// conn.setDoInput(true);
System.out.println("Status code: " + conn.getResponseCode());
System.out.println("Message: " + conn.getResponseMessage());
Error MSG(println)
Status code: 401
Message: Unauthorized
Are there any seniors? help me~.