Web Hosting Talk







View Full Version : noob question about video, avi


Lykele
11-16-2003, 05:59 PM
I was wondering if someone might be able to answer a question for me.

On my web page I have a link to an AVI file. When I click on this link Windows Media opens a new screen and plays the video.

What I would like to do is play the video on the same page as the link in a small window. I'm sure you've seen what I mean.

What coding would I have to add to do this?

I did use the ActiveX control to load Windows Media on the page, but the link opens up a new window.

Anything a "green" user like me could accomplish?

Thanks Jim

Burhan
11-16-2003, 06:56 PM
You probably want an embedded player.

Try this tutorial (http://www.meidomus.com/node/view/17) which shows you how to embed an audio player in a page. If you change the audio file to a video file, it should work.

Hostopedia
11-19-2003, 04:21 AM
One more good resource:
http://www.streaming-media.biz/cnt400.html

:::Hostopedia:::

Lykele
11-19-2003, 12:33 PM
Thanks very much for the links to the tutorials. That did help explain how to get the WMP on my web page.

I noticed in all the examples that the filename value was always "fixed"

<param NAME="fileName" VALUE="c:\temp\MVI_0019.avi">

Does anyone know of a way that it can be setup differently each time depending on what the user selects elsewhere?

I tried adding an IF/ELSE statement within the <OBJECT>, what happened there is it played both videos simultaneously!

I tried to assign a variable to the VALUE, but that didn't work either

Maybe this can't be done?

Thanks. Jim