Jump to content

How to get the video duration with the API Metacafe


laressitance

Recommended Posts

Hello,

I wonder how I can retrieve the length of a video with the API Metacafe.

 

I get the information from the API with the simplexml_load_file function PHP.

Here is an example of url of the API: http://www.metacafe.com/api/item/8373557/

but I can not get the video length with SimpleXML PHP DOM

 

Here the piece of code that comes from the API's XML file which gives the length of the video:

<media:content url="http://www.metacafe.com/fplayer/8373557/make_your_photos_look_pro_with_pix_pixel_mixer_for_ios_and_android_snapp.swf" type="application/x-shockwave-flash" medium="video" height="360" width="640" duration="62" />

 

Have you any idea how I could do?

 

Thank you

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.