[英]How to get video height and width of Instagram video?
Is there a way to get video's height and width of Instagram video without using Instagram's API? 有没有一种方法可以在不使用Instagram API的情况下获取Instagram视频的高度和宽度 ?
Example of Instagram video: https://www.instagram.com/p/BMB8fWIjcLT/embed/ Instagram影片范例: https : //www.instagram.com/p/BMB8fWIjcLT/embed/
The /media/<media-id> API endpoint will give you both height and weight in the response. / media / <media-id> API端点将在响应中同时显示身高和体重。 From https://www.instagram.com/developer/endpoints/media/ :
从https://www.instagram.com/developer/endpoints/media/ :
{
"data": {
"type": "video",
"videos": {
"low_resolution": {
"url": "http://distilleryvesper9-13.ak.instagram.com/090d06dad9cd11e2aa0912313817975d_102.mp4",
"width": 480,
"height": 480
},
"standard_resolution": {
"url": "http://distilleryvesper9-13.ak.instagram.com/090d06dad9cd11e2aa0912313817975d_101.mp4",
"width": 640,
"height": 640
},
...
},
...
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.