Hi,
In Wowza IDE I use a request that takes the streamName to the URL and gets a license key in the response. I would like to get this key which is in JSON format and use it in DRM encryption. I know that I can use IHTTPResponse but I don’t know how to use it to get a response that I will convert to a string and use to set in cencInfo. This is my code:
String post_data = streamName;
Gson gson = new Gson();
String jsonString = gson.toJson(post_data);
System. out .println(jsonString);
String server_url = “my_url”;
HTTPUtils. HTTPRequestToByteArray (server_url, “POST”, jsonString, null );