Hey all.. I'm sure you experienced webpeople will laugh at this.. But how do you take a normal video, either wmv or mpg and make it be able to stream on the net?
I ask this because I can't figure it out. LOL Let's say that I shoot a 30 sec video that I want to put on my site and host.. I want to be able to stream it to my users.. What do I need to do? Thanks!
I use this site for some of my vid stuff, see if it gives you what you need.
http://cit.ucsf.edu/embedmedia/step1.php
This works a treat for me, but I am wondering if there is any code I can add to make the video play at 200% zoom by default :)
<table cellpadding="0" border="0" align="center">
<tbody>
<tr>
<td> <object width="640" height="570" id="mediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="http://www.never-enough.co.uk/***/*****/***.wmv" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="false" />
<param name="showControls" value="true" />
<param name="loop" value="false" /> <embed width="640" height="570" type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" bgcolor="darkblue" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" src="http://www.never-enough.co.uk/***/*****/***.wmv" autostart="false" designtimesp="5311" loop="false"></embed> </object> </td>
</tr>
<!-- ...end embedded WindowsMedia file --> <!-- begin link to launch external media player... -->
<tr>
<td align="center"> <a href="http://www.never-enough.co.uk/***/*****/***.wmv" style="font-size: 85%;" target="_blank">Download Video</a> <!-- ...end link to launch external media player... --> </td>
</tr>
</tbody>
</table>
That you have to google for..
@ keith021773
To make your own "Youtube" Like player try this
http://www.jeroenwijering.com/?item=Flash_Video_Player
If you want to embed Windows media use this code:
<center>
<OBJECT id='mediaPlayer' width="728" height="728"
clarseid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components
' type='application/x-oleobject'>
<param name='fileName' value="http://yoursite.com/video.wmp">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="80">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="8202">
<param name="_cy" value="8202">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0'
bgcolor='darkblue' showcontrols='1' showtracker='1'
showdisplay='1' showstatusbar='1' videoborder3d='0' width="728" height="548"
src="http://yoursite.com/video.wmp" autostart='1' designtimesp='5311' loop='0'>
</EMBED>
</OBJECT>
</center>
Change "http://yoursite.com/video.wmp" to where the video file is located. You can also adjust the width and height of the player
This player will play in both IE and FF
:up:
Hope this helps
@ Chris29
Look at the code you posted you will see:
width ="640" height ="570"
Change those values till you get it the size you want it :up:
Thanks Lord Anubis :) I have switched to the code you have posted - it seems a bit more simple than mine. What I was after was a 'stretch to fit' option - I don't think I made that clear in my initial post. I got it sorted in the Firefox code by adding stretchtofit="1"... It took an hour to find it, but in the end Google did come up with the goods - So, thanks G6 too 8)
It really IS a cake day to day 8)
Your welcome :)