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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.