Use with embed URL. 425x350 px preset. Does anyone know if any YouTube videos are shown in another resolution?
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
320x240 has an aspect ratio of 4/3, while 425x350 has an aspect ratio of 17/14. If anyone knows any standards for YouTube, let me know. In the hypothetical situation that there are just two of them (e.g. 425x350 px and 320x240 px), I guess
Code:
[youtube425]
and
Code:
[youtube320]
could work.
Hmm, I haven't been able to use PHP in BBCODE. WETWIIIRED!
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram
I didn't imply something like [PHP]echo "Hello!";[/PHP], I mean using PHP for determining the outcome of the BBCODE. E.g. by allowing users to enter a width parameter in BBCODE, and then having PHP divide the user-entered width by an aspect ratio constant (e.g. 4/3) to determine the height of the movie clip automatically.
[youtube=400]http://www.youtube.com/v/7oXx0qwe0wc[/youtube] would thus display a hypothetical 400x300 px YouTube movie clip.
Dual parameter BBCODE would also come in handy...
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram