How to embed Flash video. (*UPDATED*)

FAQ's, Things you might like to know about the board, and general announcements.
Locked
User avatar
Lester
Administrator
Administrator
Posts: 2809
Joined: Fri Dec 14, 2001 5:47 pm
Contact:

How to embed Flash video. (*UPDATED*)

Post by Lester »

Down and dirty...

Most sites that do Shockwave/Flash videos give you a method for embedding their videos onto your own websites. However, the method that PHPBB2 uses requires a little bit of investigation. It should also be noted that some sites won't work at all.

First, click the EMBED portion of the site you're gleaning the video from. Example 1 will be YouTube...

http://www.youtube.com/watch?v=tYQ7O6V0Fvk

Underneath the video you'll see a box that says SHARE. Click in the box, it display the "short" URL of the video, and just under that will be a button that says EMBED. A box will appear with the embed code DON'T USE IT. Check the box just beneath the code that says USE OLD EMBED CODE. Right click and COPY the code that now appears in the window.

On the message board, open up your new message (or reply). Right click and PASTE the code into the editor.

Code: Select all

<object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/tYQ7O6V0Fvk?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/tYQ7O6V0Fvk?version=3&hl=en_US" type="application/x-shockwave-flash" width="425" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object>
What you need from this is the width/height of the movie and its URL (PARAM NAME ="movie"... grab everything between the quotes for VALUE="http://www.youtube.com/v/tYQ7O6V0Fvk?version=3&hl=en_US")

All that needs to remain for this video is:
425,349 http://www.youtube.com/v/tYQ7O6V0Fvk?version=3&hl=en_US

Across the top of the NEW TOPIC window is a box that says "FLASH". Clicking it will place:

Code: Select all

[flash=][/flash]
into the text editor.

After the = sign and inside the bracket, you need to place the width and height of the movie, separated by a comma, and no spaces.

Code: Select all

[flash=425,349]
BETWEEN THE FLASH CODES you will place the URL of the movie.

Code: Select all

[flash=425,355]http://www.youtube.com/v/tYQ7O6V0Fvk?version=3&hl=en_US[/flash]
All that gets you this:



Example 2 comes from the site break.com.

Break uses flash to actually copy the embed code into your clipboard. Click SHARE (just below the video to the right) and click EMBED. The code is automatically copied to your clipboard.

On the message board, open up your new message (or reply). Right click and PASTE the code into the editor.

Code: Select all

<object width="464" height="392"><param name="movie" value="http://embed.break.com/NTA2MTky"></param><param name="allowScriptAccess" value="always"></param><embed src="http://embed.break.com/NTA2MTky" type="application/x-shockwave-flash" allowScriptAccess=always width="464" height="392"></embed></object><br><font size=1><a href="http://www.break.com/index/bestbuy-dance-off.html">Best Buy Dance Off</a> - Watch more <a href="http://www.break.com/">free videos</a></font>
What you need from this is the width/height of the movie and its URL (PARAM NAME ="movie"... grab everything between the quotes for VALUE="http://embed.break.com/NTA2MTky")

464,392 http://embed.break.com/NTA2MTky

Across the top of the NEW TOPIC window is a box that says "FLASH". Clicking it will place:

Code: Select all

[flash=][/flash]
into the text editor.

After the = sign and inside the bracket, you need to place the width and height of the movie, separated by a comma, and no spaces.

Code: Select all

[flash=464,392]
BETWEEN THE FLASH CODES you will place the URL of the movie.

Code: Select all

[flash=425,355]http://embed.break.com/NTA2MTky[/flash]
Resulting in this:



If you can't easily track down 'param name="movie" value=', then odds are you can't embed the video here.
Locked