Mediainfo媒体信息
更新时间:2019-06-14
对于BOS中某个Object,可以通过下面代码获取媒体信息
public void getMediaInfoOfFile(MediaClient client, String bucket, String key) {
GetMediaInfoOfFileResponse mediaInfo = client.getMediaInfoOfFile(bucket, key);
System.out.println("fileSizeInByte: " + mediaInfo.getFileSizeInByte());
System.out.println("etag: " + mediaInfo.getEtag());
System.out.println("type: " + mediaInfo.getType());
}