easyswoole阿里云获取视频信息(继承上面 easyswoole上传视频到阿里云)
作者:互联网
- App/HttpController/Index.php
public function getVideoInfo(){
$videoId='0fda2220f2504ba9b549307039166145';
$obj=new AliVod();
$result=$obj->getPlayInfo($videoId);
print_r($result);
}
- App/Lib/AliyunSdk/AliVod.php
public function getPlayInfo($videoId=0){
if(empty($videoId)){
return [];
}
$request=new vod\GetPlayInfoRequest();
$request->setVideoId($videoId);
$request->setAcceptFormat('JSON');
return $this->client->getAcsResponse($request);
}
标签:视频,AliVod,getPlayInfo,request,videoId,阿里,result,easyswoole,new 来源: https://blog.csdn.net/qq_33332184/article/details/97019460