|
@@ -263,8 +263,10 @@ class VideoDemand extends Base
|
|
|
public function getVideoInfo($ali_vid)
|
|
|
{
|
|
|
$client = self::createClient($this->access_key, $this->access_secret);
|
|
|
- $getVideoPlayAuthRequest = new GetPlayInfoRequest(['videoId'=>$ali_vid]);
|
|
|
- var_dump($ali_vid);
|
|
|
+ $getVideoPlayAuthRequest = new GetPlayInfoRequest([
|
|
|
+ 'videoId'=>$ali_vid,
|
|
|
+ 'ResultType'=>'Multiple',
|
|
|
+ ]);
|
|
|
$runtime = new RuntimeOptions([]);
|
|
|
try {
|
|
|
$res = $client->getPlayInfoWithOptions($getVideoPlayAuthRequest, $runtime);
|