Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3956634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:23:19+00:00 2026-05-20T02:23:19+00:00

hello i’m building website in which i need the functionality of retriving video (

  • 0

hello i’m building website in which i need the functionality of retriving video ( if video), images, descirption from different links, like different video websites or if general website link get thumbnail and descirption.

is there any php class exist ? for this taks Please help me suggest better solution Thanks in advance…

oh yeah example is just like facebook link tab

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:23:19+00:00Added an answer on May 20, 2026 at 2:23 am

    Firstly you more than likely referring to video sites such as Youtube and Vimeo.

    Both sites have an API Features that you can use to get your video information:

    • Vimeo
      • http://vimeo.com/api
    • Youtube
      • http://www.youtube.com/dev
      • http://code.google.com/apis/youtube/overview.html
      • http://code.google.com/apis/youtube/2.0/developers_guide_php.html

    For a extensive frameowrk in youtube api requests you can use Zend Data: http://framework.zend.com/download/gdata

    for a Vimeo PHP Library use https://github.com/vimeo/vimeo-php-lib

    Most other professional sites will have some sort of API out there, and there would more than likely be libraries for them.


    Is there any native classes that interact with all these websites ?

    Short answer is no, All there API’s are different, therefore no single class can interact with all the websites successfully.

    What you need to do is create a Driver based package to handle this.

    You base class would look something like so:

    class VideoAPI
    {
        private $driver;
        public function __construct($driver)
        {
            require_once "drivers/" . $driver . ".class.php";
            $driverClass = $driver . "_Driver";
    
            $this->driver = new $driverClass;
        }
    
        public function FetchVideoById($id)
        {
            return $this->driver->FetchVideoById($id);
        }
    }
    

    You would then have an interface for your drivers like so:

    interface IVideoDriver
    {
        public function FetchVideoById($id);
        /*.
            Other required methods
        .*/
    }
    

    and each driver would implement the method and extend the request class like so:

    class Youtube_Driver extends VideoRequest implements IVideoDriver
    {
        protected $base_url = "http://gdata.youtube.com"
        public function FetchVideoById($id)
        {
            $Request = $this->request($this->base_url . "/feeds/api/videos/",array(
                "format" => "json",
                "api_id" => $this->config->api_keys->youtube
            ));
    
            if($Request->status() == VideoRequest::STATUS_OK)
            {
                 return $Request->Response();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I was just writing a little Android application which takes an image from
Hello I need to do something like this: UPDATE tbl SET pozn=CONCAT(pozn, '+attach_str+') WHERE
Hello i have the following problem, I record a video using red5 like this:
Hello I have the following error by git-fsck, which cannot be cleaned by git-gc
Hello again ladies and gents! OK, following on from my other question on ASP.NET
Hello , I am currently working on the student association's website. The student's association
Hello guys I need to pass a string array over to a setter that
Hello StackOverflow, I'd like to know if there is way to trigger an event
Hello I need some help with a bug in Internet Explorer 9. I am
Hello i have a list of apartments and i need to filter them by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.