Using video/flash in topics? - Posted (30136 Views)
Retired Support Moderator
MarcelG
Posts: 2625
2625
I've been fiddling around with some javascript to circumvent the Eolas patents which will change IE very soon. Based on those javascript functions I decided to create some additional forumcode that allows users to embed video/flash directly in their posts, at least in IE and on Windows.
demo: http://oxle.com/topic.asp?tid=3392 (it looks differently when your logged in/not logged in, so you can use demo/demo to log in).
Update 20-02-2006: Installation guide & fix for non-oxle code forums is available at http://oxle.com/topic.asp?tid=3437<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
If you implement the above mentioned functions etc, you'll be able to use the [video][/video] tags for:
... * 4:3 & widescreen Vimeo videos using the HTML Embedding code provided by Youtube Vimeo. * 4:3 Vimeo videos using the URL

Example at oxle:

This link: http://vimeo.com/4946315
Embedded as widescreen player with the embed code:
Code:
[video]<object width="400" height="225"><param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie"
value="http://vimeo.com/moogaloop.swf?clip_id=4946315&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />
<embed
src="http://vimeo.com/moogaloop.swf?clip_id=4946315&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1"
type="application/x-shockwave-flash"
allowfullscreen="true"
allowscriptaccess="always"
width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/4946315">gottardo nord</a>
from <a href="http://vimeo.com/fb1visuals">fb1 visuals</a>
on <a href="http://vimeo.com">Vimeo</a>.</p>[/video]
Or as 4:3 player with just the link:
Code:
[video]http://vimeo.com/4946315[/video]

At oxle: http://oxle.com/topic/5898.html
Posted
Senior Member
Astralis
Posts: 1218
1218
Marcel,

I love all the work you did to this and appreciate that you're sharing it.

I'm sure you considered this, so I want to get your thoughts because I might allow videos on my site:

Would it be simpler to create a system where the user can input the video ID instead of the entire embed code? I think the video ids are always the same, even when urls change. Then you can create a system that allows the user to check the site where they're grabbing the video. This seems to reduce the complexity but requires the poster to know where to find the video id.
For example, the user goes to embed a video id:


Supported video sites (radio button):

- YouTube
- Vimeo
- NYTimes

Embed video id: ________________.
This seems to reduce the complexity of the script and also seems like it would be easy to update or is this simply one half of the other?
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
That's how I used it initially. However, as most users simply want to grab the embed code instead of look for the video id, I decided to change the approach to actually allow the embed code to be posted. That's why I now have support for just a couple of sites instead of all sites. My code finds out which video to embed, and which size (widescreen or 4:3), and then changes it accordingly. You could add any site embed code if you want, as long as you know how to deconstruct it to remove malicious inserted code and reconstruct it. From the top of my head my code now supports Youtube, Vimeo, GoogleVideo and Dailymotion.
You Must enter a message