You can use the SWF Tools filter to add YouTube content to a page, but it isn't quite as straightforward as simply referencing the external file.

SWF Tools cannot determine the appropriate action to use for a file that is referenced from YouTube since the url has no extension. The action is instead explicitly set in the filter by passing the parameter action="swftools_swf_display_direct". Secondly, the height and width must be provided in order for the content to display properly.

So, to link to a YouTube file you need the url of the file (as shown in the embedding code for the YouTube page in question), and you need the height (generally 344) and width (generally 425) . You can then write a line like this:

[swf file="http://www.youtube.com/v/uikgwR8YwfQ&hl=en&fs=1" height="344" width="425" action="swftools_swf_display_direct"]

That will reference the appropriate file, give the height and width, and tell SWF Tools it should just render this as a regular swf file.

Creating a YouTube playlist

#585500: using swf() with multiple youtube urls

Comments

eltambo’s picture

with
[swf file="http://www.youtube.com/v/uikgwR8YwfQ&hl=en&fs=1" height="344" width="425" action="swftools_swf_display_direct"]

Test
[swf file="http://www.youtube.com/v/uikgwR8YwfQ?hl=en&fs=1" height="344" width="425" action="swftools_swf_display_direct"]

change & by ?

peezy’s picture

I also got this to work without any query string, so the tag would look like this:
[swf file="http://www.youtube.com/v/uikgwR8YwfQ" height="344" width="425" action="swftools_swf_display_direct"]