Post a video on your website

Author: Roger Morrison
Date Of Creation: 3 September 2021
Update Date: 1 July 2024
Anonim
How to Upload Your Website To The Internet
Video: How to Upload Your Website To The Internet

Content

Do you have a website and would you like to add video to it? If so, you've come to the right place. There are various ways to achieve this and here you will find a number of examples.

To step

Method 1 of 4: YouTube videos

This is the simplest method. In this way it is possible to embed videos in your web page without having to know anything about programming. Also, there is no need to host the video yourself.

  1. Go to YouTube.
  2. Search for the video you want to embed or upload your own.
  3. Find the option embed or Enclose on the web page (below the video). If you are viewing the YouTube video on a website other than youtube.com, (in other words, it is already embedded), this option will appear at the end of the video.
  4. Copy the displayed code to the clipboard. (Right click> Copy or Ctrl> C for Windows users.)
  5. Paste the code in your webpage where you want the video to appear. (Right click> Paste or Ctrl> V for Windows users)

Method 2 of 4: Inline video

Inline video is another easy way to add video to your web page. The problem with this method is that visitors often find it annoying and some people have changed their settings so that inline videos are not shown. It is also difficult to control the way the video is played.


  1. Locate the file. It is recommended to upload the video to your own server, instead of uploading the video hotlinking (use it directly) on other websites.
  2. Put the URL of the file in a img> tag.
    For instance:
    img = "Example.avi">
  3. Add this code to your web page. Change Example.avi in the correct file name.

Method 3 of 4: Plugins

Plug-ins are mini programs that you can embed / embed in a web page. In the case of video playback, it is a media player. Some examples are Windows Media Player, QuickTimeandRealMedia.


  1. Locate the file just like with the Inline video method.
  2. Embed the file. This can be done in a number of ways. Here are a few examples:

QuickTime (.mov)

  1. Use the following code as an example:

    object width = "160" height = "144"
    classid = "clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase = "http://www.apple.com/qtactivex/qtplugin.cab">
    param name = "src" value = "Example.mov">
    param name = "autoplay" value = "true">
    param name = "controller" value = "false">

    embed src = "sample.mov" width = "160" height = "144"
    autoplay = "true" controller = "false"
    pluginspage = "http://www.apple.com/quicktime/download/">
    / embed>

    / object>
  2. Add this to your webpage. Do not forget Example.mov to the correct file name, and change some of the parameters/ settings If necessary.

Real Video (.rm / .ram)

  1. Use the following code as an example:

    object width = "320" height = "240"
    classid = "clsid: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
    param name = "controls" value = "ImageWindow" />
    param name = "autostart" value = "true" />
    param name = "src" value = "Example.ram" />
    / object>
  2. Add this to your webpage. Do not forget Example.ram to the correct file name, and change some of the parameters/ settings If necessary.

Method 4 of 4: Hyperlinks

Another way to add video to a web page is to add a hyperlink. This is just a link to the video. The file will then open automatically with the help of a plug-in (see above).


  1. Use the following simple code as an example:

    a href = "Example.avi">
    Click here to play a video.
    / a>
  2. Add this to your webpage. Do not forget Example.avi to the correct file name, and change some of the parameters/ settings If necessary.

Tips

  • It is also possible to click the menu button on embedded YouTube videos to view the embed or Enclose option while the video is playing.
  • It is useful if you know something about HTML before doing this.
  • The shortcuts should also work for the Apple if you instead of Ctrl the commandbutton.
  • Make sure to save the HTML code of your web page before doing this so that you can correct any errors.

Warnings

  • Do not upload copyrighted material to YouTube or link on your website to such video. This is a criminal offense in most countries.