title: How to get video duration from Cloudinary?
body: <p>I have a roadblock here. I want to get the video duration from Cloudinary.
  Is there any function I can use to get my desired result?</p>
  
  <p>The Only option I found is using Cloudinary API's <code>resource</code> method. I am using the PHP Cloudinary API in this way:</p>
  
  <pre><code>$api = new \Cloudinary\Api();
  
  $result = $api-&gt;resource("public_id",array("resource_type" =&gt; video","duration"=&gt;true));
  
   print_r($result);
  </code></pre>
  
  <p>This function gets most of the info of the video but not the video's duration. </p>
  
  <p>I have also tried with PHP 'getID3' Library but it returns an error that says:</p>
  
  <blockquote>
    <p>Remote files are not supported - please copy the file locally first</p>
  </blockquote>
  
  <p>If you guys have any idea how to do this in Cloudinary or in PHP, please Share.</p>
  
  <p>Thanks in advance.</p>