0

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?

9
Contributors
19
Replies
21
Views
8 Years
Discussion Span
Last Post by Abdullahakeem
0

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

0
<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

Edited by almostbob: n/a

0

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

Edited by almostbob: n/a

0

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

0

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

0

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,

0

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

0

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.

Edited by Ezzaral: Deleted product promotion.

-1

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.