So I've been asked over and over in the last few weeks if there was a way to embed audio/video files without having to sign-up for a YouTube account or another similar service. There's still not a totally seamless way to do this, but for small files... there's a workaround if you can do a bit of coding.
It took a colleague asking again today for more info, and, while I don't pretend to be a coder, my husband does. So five minutes later he's got a sample code off of a file posted to his personal space.
More info on the embed tags can be found here: http://www.apple.com/quicktime/tutorials/embed2.html
Here's a promotional video for the Blogs@Penn State posted to my personal space. I used a file named blogs.mov inside my main www folder. The code snippet looks like this:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" scale="tofit" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="365" width="640">
<param name="qtsrc" value="rtsp://www.personal.psu.edu/elc134/blogs.mov" />
<param name="SRC" value="www.personal.psu.edu/elc134/blogs.mov" />
<param name="AUTOPLAY" value="false" />
<param name="CONTROLLER" value="true" />
<embed src="http://www.personal.psu.edu/elc134/blogs.mov" qtsrc="http://www.personal.psu.edu/elc134/blogs.mov" scale="tofit" autoplay="false" controller="true" href="http://www.apple.com/quicktime" height="365" width="640">
</object>
And here's the video:
Note that the class id and code base above are for QuickTime. You can Google the proper info for other forms fairly easily. Here's one for Flash as an example.
Keep in mind that there are reasons we suggest using YouTube or another service for your videos. 1) You only have so much personal space. When you fill it up, you're done. 2) There are many types of video files and not all of them will easily play for everyone. Just remember who your audience is.
It took a colleague asking again today for more info, and, while I don't pretend to be a coder, my husband does. So five minutes later he's got a sample code off of a file posted to his personal space.
More info on the embed tags can be found here: http://www.apple.com/quicktime/tutorials/embed2.html
Here's a promotional video for the Blogs@Penn State posted to my personal space. I used a file named blogs.mov inside my main www folder. The code snippet looks like this:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" scale="tofit" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="365" width="640">
<param name="qtsrc" value="rtsp://www.personal.psu.edu/elc134/blogs.mov" />
<param name="SRC" value="www.personal.psu.edu/elc134/blogs.mov" />
<param name="AUTOPLAY" value="false" />
<param name="CONTROLLER" value="true" />
<embed src="http://www.personal.psu.edu/elc134/blogs.mov" qtsrc="http://www.personal.psu.edu/elc134/blogs.mov" scale="tofit" autoplay="false" controller="true" href="http://www.apple.com/quicktime" height="365" width="640">
</object>
And here's the video:
Note that the class id and code base above are for QuickTime. You can Google the proper info for other forms fairly easily. Here's one for Flash as an example.
Keep in mind that there are reasons we suggest using YouTube or another service for your videos. 1) You only have so much personal space. When you fill it up, you're done. 2) There are many types of video files and not all of them will easily play for everyone. Just remember who your audience is.
Leave a comment