Verified Commit 755fffb9 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Removing screenshot from context.

parent 414b035d
......@@ -78,9 +78,9 @@ public class JSONHandler
public JSONObject GenerateContextJSON()
{
string now = DateTime.Now.ToString("yyyy-MM-ddTHH-mm-ss");
string screenShotPath = $"{Application.persistentDataPath}/context_{now}.png";
ScreenCapture.CaptureScreenshot(screenShotPath);
// string now = DateTime.Now.ToString("yyyy-MM-ddTHH-mm-ss");
// string screenShotPath = $"{Application.persistentDataPath}/context_{now}.png";
// ScreenCapture.CaptureScreenshot(screenShotPath);
Dictionary<string, JSONObject> sceneDict = new Dictionary<string, JSONObject>();
......@@ -108,7 +108,7 @@ public class JSONHandler
}
JSONObject metaObject = new JSONObject();
metaObject.Add("image", screenShotPath);
// metaObject.Add("image", screenShotPath);
JSONObject contextObject = new JSONObject();
contextObject.Add("meta", metaObject);
contextObject.Add("context", sceneArray);
......
......@@ -133,7 +133,7 @@ public class SceneController : MonoBehaviour
{
JSONObject response = JSONHandler.instance.GenerateContextJSON();
// Should better wait until context screenshot is available, but this works good enough
yield return new WaitForSeconds(3);
// yield return new WaitForSeconds(3);
yield return replyRequest(response, originalRequest);
}
......
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 to comment