If you want to have a video that will play right in your web page, you can embed the video. Embed is a HTML tag that we have not discussed in previous sections that is used to place the video directly on the page. There are a few steps involved in embedding a video and may take some trial and error, but below we have the basic steps.
First, you will need to download a video player file that will play the video on your website. You can also embed a .wmv file and not have a video player file on your website, however in order for a .wmv file to play your website visitor must have Windows Media Player on their computer. If your visitors have a Mac, they may not have Windows Media Player which is why in this example we are using a flash player. There are many different files available that will assist you in playing an embedded video, however in this example we will be using a flash media player called mediaplayer.swf.
Once you have the file to play the video, you can create your HTML code. This is a very basic player code that we use on our own website, there are others available on the Internet that may have more options. We will go over the details in a moment, but here is the code:
<embed src="/help/mediaplayer.swf?file=video.wmv" width"854" height="480" allowfullscreen="true" />
Now we will break down the different parts to explain the code:
As long as you have the correct path in file= and have uploaded the media player, on your website you should now have an embedded video. Remember that there are lots of embed codes available on the Internet and you are not required to use this one, it is just an example of one way to embed your video on your website.
When embedding audio, it is essentially the same process as it is with video. The following is an example of the code you would use:
<embed height="50" width="100" src="/myaudiofiles/example.mp3">
Within this, you can also adjust the size of the audio player to best fit your individual site.
n/a Points
|
2017-05-20 10:40 pm
Include common problem with getting this working. I have done exactly this and the embedded square shows momentarily on my site, but then vanishes.
|
n/a Points
|
2017-09-12 2:37 am
How can i create my own live streaming system on my website inorder not to get hacked the video instead of using youtube or other websites?? Please help me!!! |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!