SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast laresistance2's Avatar
    Join Date
    May 2011
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get the video duration with the API Metacafe

    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

  2. #2
    SitePoint Enthusiast laresistance2's Avatar
    Join Date
    May 2011
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone know the solution

  3. #3
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Sao Paulo, Brazil
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •