GithubHelp home page GithubHelp logo

oembed-it's Introduction

<?php
$url = 'http://v.youku.com/v_show/id_XMzA3OTcxNjE2.html';
$options = array('format'=>'xml');
ServiceProvider::serve($url,$options);
?>

output:
{ "author_name" : "泡芙小姐",
  "author_url" : "http://u.youku.com/%E6%B3%A1%E8%8A%99%E5%B0%8F%E5%A7%90",
  "height" : 400,
  "html" : "<embed src=\"http://player.youku.com/player.php/sid/XMzA3OTcxNjE2/v.swf\" allowFullScreen=\"true\" quality=\"high\" width=\"480\" height=\"400\" align=\"middle\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\"></embed>",
  "provider_name" : "优酷",
  "provider_url" : "http://www.youku.com/",
  "thumbnail_height" : 336,
  "thumbnail_url" : "http://g2.ykimg.com/1100641F464E964935E110053E02610D9C50ED-B2C9-60B3-D040-81CE2E1B6178",
  "thumbnail_width" : 448,
  "title" : "泡芙小姐的金鱼",
  "type" : "video",
  "version" : "1.0",
  "width" : 480
}

oembed-it's People

Watchers

James Cloos avatar Kevin Hua avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.