Commit 5b3433fe by Adi Amir

support video

parent a6323d71
Showing with 4 additions and 0 deletions
......@@ -53,6 +53,7 @@ public class GEManager {
this.logger = logger;
httpClient = new SimpleHttpClient();
httpClient.Initialize(100);
httpClient.addMimeType("video/mp4");
}
public BaseRestResponse executeRequest(String serviceId, String[] apiIdAsParams, RequestContext requestContext) {
......@@ -66,6 +67,9 @@ public class GEManager {
else if (apiIdAsParams.length == 3 && apiIdAsParams[0].equals("camera") && apiIdAsParams[2].equals("latestImage")) {
brr = getLatestMediaFile(apiIdAsParams[1] /*camId*/, "IMAGE", requestContext);
}
else if (apiIdAsParams.length == 3 && apiIdAsParams[0].equals("camera") && apiIdAsParams[2].equals("latestVideo")) {
brr = getLatestMediaFile(apiIdAsParams[1] /*camId*/, "VIDEO", requestContext);
}
else if (apiIdAsParams.length == 3 && apiIdAsParams[0].equals("camera") && apiIdAsParams[2].equals("details")) {
brr = getCameraDetails(apiIdAsParams[1] /*camId*/, requestContext);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment