Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
Here's the code I'm using:
<center><embed wmode="transparent" height="350" width="425" src="http://www.example.com/videos/file-name.mpg"></embed></center>
Is there another player I can embed like this that will work properly. It's strange because the files are working on my computer. Thanks.
I would look at encoding in a format that forces a player on a user like flash or Quicktime.
You could try embedding for Windows Media Player by using the appropriate tags but I wouldn't advise it due to cross-platform issues and general clunkiness (another technical term), and whether anyone can actually view your AVIs will depend on them having the codecs you used installed on their computer. You may also find that the necessary MIME-type is not set on your webserver..
As Demaestro says, encoding in a suitable format is the way to go, and while MPGs will play on just about anything the files will be larger than necessary - Flash, QuickTime or RealMedia offer good compression, and of these it is Flash that almost everyone has installed.
It won't work on the website
It might if you put this in an .htaccess file in the directory where the video file is:
AddType video/x-msvideo followed by a space and avi
But that doesn't mean it's a good idea - who uses AVI on the web?
What program can I use to encode the video to Flash?
Umm... Flash is good for that kind of thing, but there are lesser alternatives and even free packages such as ffmpeg, or you could upload it to YouTube then rip it - but you still need to create an SWF file to play the resulting FLV video.