Click to See Complete Forum and Search --> : Video on web site
av8or
11-07-2005, 01:59 PM
I would like to post a video on my web site. I'd like for the viewer to be able to click on a play button and view the video directly on the site. I don't want them to have to rely on an external video player such as Real Player or Caffeine or WMP.
What would it take to accomplish this task assuming I already have the video in a digital format?
ph34r
11-07-2005, 02:23 PM
Nothing. Browsers aren't capable of playing video, and will need a plugin. That being said, convert your video to a common format with a common codec - mpeg would probably do it.
ocmnet
11-07-2005, 03:29 PM
Try this:
<embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>
bwkaz
11-07-2005, 07:19 PM
Try this:
<embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE> Which will only work if your browser has a plugin that understands whatever MIME-type your web server sends for "myvideo.avi", and also understands all the extra attributes that you've put in here.
My guess is this will only work in IE, on Windows.
timothykaine
11-08-2005, 04:08 AM
Thats actually the preferred command for Netscape/Mozilla. It will work in in any popular browser, and a recent version of IE. Older versions of IE request an IE-specific tag.
av8or
11-08-2005, 10:25 AM
Ok, so if I use this:
<embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>
How can I provide the viewer with stop, start and pause buttons?
bwkaz
11-08-2005, 07:48 PM
It will work in in any popular browser, ... As long as that browser can display whatever MIME-type your web server sends for the .avi file. If the user doesn't have some AVI-playing plugin installed, their browser will display a large block saying "click here to get the plugin".
thaddaeus
11-08-2005, 07:59 PM
I will concure with bwkaz that the embed tag still relies on the media's mime type and the appropriate plugin installed. do a search for the w3c schools. the w3c has a lot of info and some tuts on useing certain code (it is the world wide web consortium)
timothykaine
11-08-2005, 08:24 PM
... As long as that browser can display whatever MIME-type your web server sends for the .avi file. If the user doesn't have some AVI-playing plugin installed, their browser will display a large block saying "click here to get the plugin".
I thought that part went without saying. No media without a plugin. I was just making sure it was known that that command works in all recent browsers, not just Internet Explorer, and that its actually the least likely to accept the command (as all versions of all Mozilla browsers will handle that command).
av8or
11-09-2005, 10:16 AM
Ok, so if I use this:
<embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>
How can I provide the viewer with stop, start and pause buttons?
av8or
11-10-2005, 02:07 PM
How can I provide a nice looking frame for the video.
How can I provide the viewer with stop, start and pause buttons?
MorphiusFaydal
11-10-2005, 04:26 PM
Frame: build it yourself out of HTML
Control buttons: you don't supply, the video player does.
google is your friend.
www.w3schools.com
Modorf
11-10-2005, 04:55 PM
flash or java?
MorphiusFaydal
11-10-2005, 05:20 PM
flash, yuck
java, inconvenient way
best to leave it to the player of the end user