3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by ivan3510
0

You're looking for the 'object' tag, which you get from the EMBED code:

<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/jVje1Fiz-_c?fs=1&amp;hl=en_GB"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jVje1Fiz-_c?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>

If you insert the above into your html, you'll see an embedded video. Is that what you need?

0

Hi ivan3510

On youtube they use this code to put videos in their pages.

<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/PIb6AZdTr-A"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/PIb6AZdTr-A" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>

But youtube videos can also be accessed by going directly to the .swf file, in this case http://www.youtube.com/v/PIb6AZdTr-A

So, you can use a program called free studio to convert a normal video on your computer to a .swf file. Then put the .swf file on your server.

Then use the code below to add the video to your site

<object width="640" height="385"><param name="movie" value="http://www.yourdomain.com/file.swf"></param><embed src="http://www.yourdomain.com/file.swf" type="application/x-shockwave-flash" width="640" height="385"></embed></object>

Hope this sorts out your problem

Calum

Edited by 84hd0ns: n/a

0

Ok. Thank you very much.
Another question.
How to add video player to this video?

0

You can use an flv player like flowplayer to play your own files. There are loads of other players out there. You should beware - hosting your own videos is very intensive wrt the server. If you get a lot of hits, you may find that you go over your quota or get a warning from your host. It's probably better to upload your video to youtube or better still to vimeo and use the embedded player. These has the benefits of allowing you to modify the appearance of the player without having to delve into javascript.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.