is there some script i can put in the webpage to make the video viewable to like the person looking at my site IN windows media player or whatever their media player is(but keep the video on the webpage... not in their program window?

does anyone know? i just want to be able to display a video i made on my webpage but i dont want to use youtube kind of thing. i want the persons media player to play it.

ive seen it be done before but i dont know how to make it happen? do any of you?

Recommended Answers

All 19 Replies

could you post a link to where you've seen it before? If the user has the capability to play it in the browser, then it won't want them to open it in a different app. You could have them download it, but that removes the streaming possibilities (aka bad). :D

i dont have a link ive just seen it somewhere a long time ago.

<script type="text/javascript">
<!--//
function shrink(){
 document.getElementById("MediaPlayer1").style.width=384;
 document.getElementById("MediaPlayer1").style.height=300;
}
function enLarge(){
 document.getElementById("MediaPlayer1").style.width=480;
 document.getElementById("MediaPlayer1").style.height=402;
}
 //-->
</script>
<button onclick="enLarge()">large</button>
<button onclick="shrink()">small</button>
<a href="http://www.microsoft.com/windows/windowsmedia/player/download/"><img alt="Get Windows Media Player" src="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" width="88" height="31" border="0"></A><br>
<object id="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="your FILE"><!-- FULL PATH TO YOUR FILE -->
<param name="showControls" value="true">
<param name="PlayCount" value="0">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="YOUR FILE" name="MediaPlayer1" width=360 height=260 autostart=true><!-- FULL PATH TO YOUR FILE -->
</embed>
</object>

http://www.microsoft.com/windows/windowsmedia/howto/articles/adsolutions2.aspx

ok thnks but i have a question. will it work for mac users?

ok thnks but i have a question. will it work for mac users?

is there some script i can put in the webpage to make the video viewable to like the person looking at my site IN windows media player...

that part I can do,
and there is a WMP for Mac that downloadable from the included link in the script
BUT
There is no way to stream media into "whatever their media player is" sorry the codes are extremely different
the video formats are extremly different
streaming media in
windows media is asf/wmv format.
quicktime .mov
realmedia .ram

oh ok so the most common would be windows media player?

definitely the easiest to code

Member Avatar for rajarajan2017

Mr. almostbob, I tried your code and test with an .avi file, It works in iexplore but not in firefox. I mean It is not fetching that file. Any Suggestion

streaming media in
windows media is asf/wmv format

Member Avatar for rajarajan2017

Yes, you are right, but it works in firefox how?

Member Avatar for rajarajan2017

sorry working in IE

what about macromedai video embeds?

ok,I thought it would work in firefox too.but,ok thanks for sharing the information.

firefox has video handling issues, ? I dunno
it is not specific code to IE
it works in opera safari IE firefox but only for .asf .wmv files, streaming media files
.avi is not a streaming format, the file is indexed at the end,

i think i will be using embed flash video like adobe flash player code but what is that code?

Easy Web Video software is the best .

is there some script i can put in the webpage to make the video viewable to like the person looking at my site IN windows media player or whatever their media player is(but keep the video on the webpage... not in their program window?

does anyone know? i just want to be able to display a video i made on my webpage but i dont want to use youtube kind of thing. i want the persons media player to play it.

ive seen it be done before but i dont know how to make it happen? do any of you?

To keep the video on the webpage, you can convert your video to the SWF format. SWF video is the Flash Video and it can be embeded into website.

You can use Adobe Flash, for it is currently very popular on the Internet, though it will be replaced by HTML video tag in the next 5-10 years.
You can also upload your video to YouTube. YouTube offers the embed code for the video. What you need to do is just to copy and paste the code to your website. This method is the easiest.

There's a software for this thing. I have the whole suite.
It's by NCH Software.

here's the link for the website:
http://www.nchsoftware.com/software/video.html

Broadcam Video Software.
You can record and link videos and run them on your website.

If you need any more help explaining the software. Please PM me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.