[Ma-linux] [Dclug] How to put a video into a web page?
gmaxwell at gmail.com
Thu Jun 11 10:28:43 EDT 2009
On Thu, Jun 11, 2009 at 10:09 AM, Joseph S D Yao<jsdy at tux.org> wrote:
> As mentioned before, if you want a link, you just do this:
> <a href="videos/mycoolvideo.flv">Click to see my cool video!</a>
> If you wish to actually have it appear taking up space on your Web site,
> as Morgan said, use <object>:
Thats pretty unlikely to work for many people, unless they've
installed VLC (which one of the few applications which will register
itself as a handler for that type). For non-inline playback you'd be
better off with virtually any other format, since people will actually
have handlers registered for other formats.
I'd recommend using the new HTML5 video tag for in-line playback.
<video src="http://mysite/myfile.ogv" width="123" height="123" controls></video>
video tag work for people without modern browsers. Feel free to simply
steal my code from here:
and the JS it loads:
and you'll need to drop a copy of
In the same location as the video for use as a fallback.
If you're insistent on using flash and you want it to actually work
for people you'll need to use an inline flash player app.
http://flowplayer.org/ But you really should be migrating away from
flash as a solution for video, it's a proprietary technology
controlled by a single vendor and dependant on patent encumbered
formats. It's also serious overkill for the simple task of playing a
video. (A full virtual machine environment for video playback??)
You can also use flash as a fallback for the video tag; though that
would require you to have your video encoded into multiple formats.
More information about the Ma-linux