Jump to content

want help with youtube video upload


salman233

Recommended Posts

Hi, I don't think you want to actually upload the files, you just want to get the youtube videos and display them. It's not that difficult but you will need to use an xml file to get the youtube information. I think this tutorial is what you want:

 

 

It's not the one I used before I don't think but it's made by the same person so it should be alright.

Link to comment
Share on other sites

Well basically youtube tries to make it as easy as possible to allow you to do what you're doing. They create an xml file that tells you information about your latest videos. For example this is the xml of my channel:

 

http://gdata.youtube.com/feeds/api/users/coolcam262/uploads

 

It shows the latest videos I have created. To find yours just use the url http://gdata.youtube.com/feeds/api/users/username/uploads You can then  look through it and you will find your videos. Of course you don't want to just display all this text, you want it to look nice! To do that you need to parse the xml to php. There's loads of premade functions for us to use but basically all they do is take the xml file and turn it into arrays! For example it might look something like: $youtube['videos']['1']['desc'] and this might show the very first video you made's description.

 

One function that has been made is called xml2php that converts... xml to php! All you need to do is include the xml2php.php file in your  code. Google how to use and download the function, it's really simple.

 

I hope I helped!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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