parent
464c989986
commit
cf3204de71
|
@ -10,6 +10,8 @@ import lombok.Data;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
/**
|
||||
* 视频信息
|
||||
*/
|
||||
|
@ -106,7 +108,7 @@ public class MediaInfo {
|
|||
}
|
||||
}
|
||||
JSONArray jsonArray = jsonObject.getJSONArray("tracks");
|
||||
if (!jsonArray.isEmpty()) {
|
||||
if (!ObjectUtils.isEmpty(jsonArray)) {
|
||||
for (int i = 0; i < jsonArray.size(); i++) {
|
||||
JSONObject trackJson = jsonArray.getJSONObject(i);
|
||||
Integer channels = trackJson.getInteger("channels");
|
||||
|
|
Loading…
Reference in New Issue