Put video on a web page through YouTube

A very simple way to put a video on a web page is to upload it to YouTube and then embed it in the web page using an HTML code that they provide.

To put video on a web page, one of the simplest options is to upload it to YouTube.com and link to the video so that it displays from there. You can put a link that goes to YouTube directly or an HTML code so that the video is displayed within your own web page.

Publishing videos on YouTube has several advantages, among which we could highlight:

  • Your videos do not take up space on your web hosting.
  • The transfer due to the videos is carried out by YouTube, so your server will not be affected (in speed and bandwidth consumed) because there are many visitors watching videos and they will not charge you more for going over Gigs transferred in your hosting. .
  • It is extremely easy to upload videos to YouTube and then place them on your website. You don’t have to worry about anything related to formats or compatibility of your video with various types of browsers.

But not all are advantages, because there are some details that are not so good:

  • The definition of your video is fixed. When you upload the video, YouTube processes it to fit its standard sizes and qualities.
  • The videos that can be uploaded have a maximum duration of 10 minutes and 100 MB.
  • Your videos are public (although on YouTube you can more or less restrict their dissemination).
  • It is a possible exit of visitors from your page: some users may go to YouTube to continue watching videos or anything else.
See also  PHP 301 and 302 redirect

So, if you are interested in the above advantages and you don’t mind suffering certain disadvantages, such as making your content public on another website or you don’t mind that the size of the videos is smaller than the one your original may possibly have, then YouTube is without Definitely a great option.

To upload a video to YouTube you need to be a registered user. Signing up is very simple and does not require any special knowledge. Once registered you will receive an email with a link to confirm your account, which is used to let them know that your email belongs to you and was written correctly. Without confirming your email, they do not allow you to upload videos.

Once your email is registered and confirmed, we access our account and we can upload a video from the upload button or through the “Account” link that appears at the top right and then “My videos” and then pressing the “upload” button a video” that appears on the left.

Then you follow the steps to place the video. You provide a description first and then upload the file with your video. It will take a few minutes for the video to load depending on its size and then another few minutes for YouTube to process it to adjust it to its own format.

From then on you have the video in your account and you can access it through the “My videos” link.

To get the piece of code that you have to paste in the HTML of your page you have to go to your account, then to “my videos” and then open the video information editing window, through the “Edit video information” button. video”. Then several fields appear and one at the bottom with the code that you have to copy and paste into the HTML of your page, in the place where you want the video to appear. This code will be something similar to this:

See also  Pseudocode, structured diagrams and algorithmic structures

This snippet of code will display your YouTube video with controls to start, stop, control volume, etc.

Additional notes on uploading videos to YouTube:

The image that appears at the beginning of the video can be selected when editing the video information. By default they already place the first frame in most cases, but then we can select another frame if we wish.

Changes to the initial images take a few hours, so you will have to be patient if you have changed the image. Sometimes the initial image of the video does not appear and a default image appears instead. In a few minutes or hours you will be able to see YouTube update and allow you to select the still photo you want. But in any case they report that it can take up to 6 hours to update.

Then, in the video information, you can even choose the place where the recording was made.

In short, with YouTube we can easily start distributing multimedia content, within everyone’s reach.

Loading Facebook Comments ...
Loading Disqus Comments ...