laressitance Posted April 17, 2012 Share Posted April 17, 2012 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 https://forums.phpfreaks.com/topic/261122-how-to-get-the-video-duration-with-the-api-metacafe/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.