posted 17 years ago
To play a video it has to be wrapped in an appropriate set of <object.. tags. This should specify a player "plug-in" that can handle the type of video you want to display. Preferably, a player that will run on all types of machines (e.g. Mac, Linux, Windows...) and is commonly available. FYI, youtube uses Flash Shockwave (and converts uploaded videos to this format).
>
Currently, there is no support to identify video attachments and wrap them in the correct player.
However, if you want to play around with getting this to work, you might be able to convert the post_show_attachment_inc.htm template file to do this.
Basically, I think the "a" loop variable is the handle to an Attachment object. From this you can use the info property to find all sorts of info about the file and use this to write out the appropriate <object... /object> HTML to display the video.
One thing to note is that this might take a lot of bandwidth if you want to support this. Unlike YouTube links, you're server will be supplying the video "stream" A lot of users looking at videos can eat up a lot of bandwidth.
[originally posted on jforum.net by monroe]