When i use download_url it’s down the video automatically not embed.
Can you please guide me or show a demo.
Find the listed demo of i have tried.
\<?php
$url = 'https://api.zoom.us/v1/recording/get';
$fields = array(
'api\_key' =\> urlencode('YOUR\_API\_KEY'),
'api\_secret' =\> urlencode('YOUR\_API\_SECRET'),
'meeting\_id' =\> urlencode('YOUR\_MEETING\_ID')
);
//url-ify the data for the POST
$fields\_string = "";
foreach($fields as $key=\>$value) { $fields\_string .= $key.'='.$value.'&'; }
rtrim($fields\_string, '&');
//open connection
$ch = curl\_init();
//set the url, number of POST vars, POST data
curl\_setopt($ch,CURLOPT\_URL, $url);
curl\_setopt($ch,CURLOPT\_POST, count($fields));
curl\_setopt($ch,CURLOPT\_POSTFIELDS, $fields\_string);
curl\_setopt($ch,CURLOPT\_RETURNTRANSFER,1);
//execute post
$result = curl\_exec($ch);
$result\_data = json\_decode($result,true);
foreach($result\_data['recording\_files'] as $keyRecording =\> $valueRecording){
if($valueRecording["file\_type"] == "MP4"){
?\>\<iframe width="425" height="344" src="\<?php echo $valueRecording['play\_url']; ?\>" frameborder="0" allowfullscreen\>\</iframe\>\<br\>\<br\>\<?php
}
}
//close connection
curl\_close($ch);
?\>
Already tried with play\_url and embed the video but not working.
Hope any one help me.