|
|
@@ -279,18 +279,7 @@ public class ActPublishArticle extends BaseActivity {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
jsonObject.put("resource", url);
|
|
|
- int a = video.getWidth();
|
|
|
- int b = video.getHeight();
|
|
|
- jsonObject.put("cover", String.format(Locale.CHINA, "%s?vframe/jpg/offset/0&w=%d&h=%d", url, a, b));
|
|
|
-// switch (video.getOrientation()) {
|
|
|
-// case 90:
|
|
|
-// case 270:
|
|
|
-// a = video.getHeight();
|
|
|
-// b = video.getWidth();
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// int rotate = 360 - Math.max(0, video.getOrientation());
|
|
|
-// jsonObject.put("cover", String.format(Locale.CHINA, "%s?vframe/jpg/offset/0/rotate/%d&w=%d&h=%d", url, rotate, a, b));
|
|
|
+ jsonObject.put("cover", url +"%s?vframe/jpg/offset/0");
|
|
|
publishArticle(dialogProgress);
|
|
|
} else {
|
|
|
ViewUtil.setText(dialogProgress.getTextView(), "上传失败");
|