Open marcosemiao opened 8 years ago
I have this problem to...
You can solve this?
Hi and sorry for the delay (a little too busy!), plz try with something like this (assuming username & password are provided):
String b64 = Base64.getEncoder().encodeToString(username.concat(":").concat(password).getBytes(Charset.defaultCharset()));
final RtspURLConnection urlc = (RtspURLConnection) url.openConnection();
FieldAttributes attrib = new FieldAttributes();
attrib.addField("Authorization", "Basic ".concat(b64));
urlc.setDescribeAttributes(attrib); // set before call connect method
urlc.connect();
Regards.
J'ai l'impression que Autorisation n'est pas donnée à la requête, j'obtiens un message d'erreur :
Ou il faut faire d'une autre façon ?
Merci d'avance et merci pour cette librairie ;)