}
-
@Override
public String getRawFileSuffix() {
return ".DNG";
{
String url = "http://192.168.1.1/osc/commands/execute";
String postData = "{\"name\":\"camera.getImage\",\"parameters\":{\"_type\":\"thumb\",\"fileUri\":\"" + path + "\"}}";
- Log.v(TAG, " postData : " + postData);
+ //Log.v(TAG, " postData : " + postData);
Bitmap bmp = SimpleHttpClient.httpPostBitmap(url, postData, timeoutValue);
HashMap<String, Object> map = new HashMap<>();
private void downloadContentThumbnailV21(String path, IDownloadThumbnailImageCallback callback)
{
// fileContent の URLをそのまま使用する
- Log.v(TAG, "downloadContentThumbnailV21() : " + path);
+ Log.v(TAG, " downloadContentThumbnailV21() : " + path);
String paramData = null;
try
{
- String url = "http://" + path;
+ //String url = "http://" + path;
int index = 0;
for (ICameraContent content : cameraContentList)
{
{
try
{
- Log.v(TAG, " exec getFileList");
+ //Log.v(TAG, " exec getFileList");
String imageListurl = "http://192.168.1.1/osc/commands/execute";
String contentList = SimpleHttpClient.httpPost(imageListurl, paramData, timeoutValue);
if (contentList != null)
if (size > 0)
{
JSONObject object = entriesArray.getJSONObject(0);
- String fileName = object.getString("name");
- //String fileUri = object.getString("fileUrl");
- //String fileSize = object.getString("size");
- //String fileDateTime = object.getString("dateTime"); // detail : false
- //String thumbnail = object.getString("thumbnail"); // detail : true (Base64)
- String fileDateTime = object.getString("dateTimeZone"); // detail : true
+ //String fileName = object.getString("name");
+ //String fileDateTime = object.getString("dateTimeZone"); // detail : true
byte[] thumb = Base64.decode( object.getString("thumbnail"), Base64.DEFAULT); // detail : true (Base64)
bmp = BitmapFactory.decodeByteArray(thumb, 0, thumb.length);
- Log.v(TAG, " ----- camera.listFiles : " + fileName + " " + fileDateTime + " [" + thumb.length + "] (" + size + ")");
+ //Log.v(TAG, " ----- camera.listFiles : " + fileName + " " + fileDateTime + " [" + thumb.length + "] (" + size + ")");
}
}
}
private void downloadContentImplV21(String path, boolean isSmallSize, final IDownloadContentCallback callback)
{
- Log.v(TAG, "downloadContentV21() : " + path + " (small :" + isSmallSize + ")");
+ //Log.v(TAG, "downloadContentV21() : " + path + " (small :" + isSmallSize + ")");
final String urlToGet = "http://" + path;
try
{
}
-
private void getCameraContentListImpl(ICameraContentListCallback callback)
{
String imageListurl = "http://192.168.1.1/osc/commands/execute";
+ String paramStr = "{\"name\":\"camera._listAll\",\"parameters\":{\"detail\":false,\"entryCount\":" + maxCount + ",\"sort\":\"newest\"}}";
String contentList;
try
{
- String paramStr = "{\"name\":\"camera._listAll\",\"parameters\":{\"detail\":false,\"entryCount\":" + maxCount + ",\"sort\":\"newest\"}}";
-
contentList = SimpleHttpClient.httpPost(imageListurl, paramStr, timeoutValue);
if (contentList == null)
{
String fileDateTime = object.getString("dateTime");
cameraContentList.add(new ThetaCameraContent(fileName, fileUri, null, fileSize, fileDateTime));
- Log.v(TAG, " [" + (index + 1) + "] " + fileName + " " + fileUri + " " + fileSize + " " + fileDateTime + " ");
+ //Log.v(TAG, " [" + (index + 1) + "] " + fileName + " " + fileUri + " " + fileSize + " " + fileDateTime + " ");
}
}
catch (Exception e)
try
{
String paramStr = "{\"name\":\"camera.listFiles\",\"parameters\":{\"fileType\":\"all\",\"entryCount\":" + maxCount + ",\"maxThumbSize\":640,\"_detail\":false, \"_sort\":\"newest\"}}";
- //String paramStr = "{\"name\":\"camera.listFiles\",\"parameters\":{\"fileType\":\"all\",\"entryCount\":" + maxCount + ",\"maxThumbSize\":640,\"_detail\":true, \"_sort\":\"newest\"}}";
- Log.v(TAG, " paramStr : " + paramStr);
+ //Log.v(TAG, " paramStr : " + paramStr);
contentList = SimpleHttpClient.httpPost(imageListurl, paramStr, timeoutValue);
if (contentList == null)
{
String fileUri = object.getString("fileUrl");
String fileSize = object.getString("size");
String fileDateTime = object.getString("dateTime"); // detail : false
- //String fileDateTime = object.getString("dateTimeZone"); // detail : true
- //String thumbnail = object.getString("thumbnail"); // detail : true (Base64)
cameraContentList.add(new ThetaCameraContent(fileName, null, fileUri, fileSize, fileDateTime));
- Log.v(TAG, " [" + (index + 1) + "] " + fileName + " " + fileUri + " " + fileSize + " " + fileDateTime);
+ //Log.v(TAG, " [" + (index + 1) + "] " + fileName + " " + fileUri + " " + fileSize + " " + fileDateTime);
}
}
catch (Exception e)