How to integrate cloud recording to Vimeo to embed it?


#1

Hi,

 

I need to integrate ZOOM cloud recording to my website using embed. I did not find any official option to embed the cloud recording.

 

So I thought if ZOOM cloud recording can automatically get uploaded to Vimeo from there I can embed it in my website.

 

Thanks,

Tejas Shah


#2

You are able to get a url to the video via https://zoom.github.io/api/#get-recording ‘download_url’

 

you can use hat url to ‘embed’ as you see fit

 

(you also get a ‘play_url’ that is a link to page that has the video embedded in it)


#3

Hi Joshua Woodward,

 

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.

#4

Where you have <iframe…

Try <video src="<?php echo $valueRecording[‘download_url’]; ?></video>

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video


#5

Hi, 

Please find the HTML source code as per your instruction.

 

|   | <html> |
|   | <head> |
|   | <title>HTML5 Live Streaming Test</title> |
|   | <script type=“text/javascript” src=“http://gc.kis.v2.scr.kaspersky-labs.com/1C73702E-E37A-2842-92AC-E42CA55640C0/main.js” charset=“UTF-8”></script></head> |
|   | <body> |
|   | <video width=“640” height=“400” controls=“controls” src=“https://api.zoom.us/recording/play/ljtxFOizWWwhF3_k9bEHObuYlWJ9MhTL3QatB_Xx3TQUC_kXbuG_B1SFsR8NBBF9”> |
|   | </video> |
|   | </body> |
|   |

</html>

 

It’s not working can you please guide me if any thing that i can miss.

 

|


#6

First, whatever JS file you have included appears to be blocking the loading of the video file.

Second, it appears you are using the play url, which is an html page not to the mp4 itself.

Third, if you try to visit the download url https://api.zoom.us/recording/download/ljtxFOizWWwhF3_k9bEHObuYlWJ9MhTL3QatB_Xx3TQUC_kXbuG_B1SFsR8NBBF9 it appears the admin has turned off downloading of recordings, which would be required to gain access to the video file.