Use this code to embed a video on your site. Just make sure you point to the right path for the video file on your server and change the width and height to your needs and set autostart to true or false. <object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components…" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"> <param name="filename" value="http://www.yourdomain.com/video.wmv"> <param name="Showcontrols" value="True"> <param name="autoStart" value="False"> <EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/ en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="0" bgcolor="darkblue" showcontrols="True" showtracker="True" showdisplay="True" showstatusbar="True" videoborder3d="0" width="320" height="240" src="http://www.yourdomain.com/video.wmv" autostart="False" designtimesp="5311" loop="0"> </EMBED> </object> PHP:
wmv cannot stream. If you use wmv on website, you have to wait the whole video downloaded before you can start to view the video. To stream video, you can use FLV, with which Youtube broadcast their videos online. And a web-based flv player is also needed. You can use Moyea Web Player (http://www.playerdiy.com/ ), which is a good flv player creator.
Hey, Currently the best method and widely used format is flv. This is a flash video file. To stream from your website you will need two things: your video in flv format and a flv player with code that you can embed into your pages html. I highly suggest using the JWPlayer from http://www.longtailvideo.com/ (Sorry have not posted enough to be able to make it a link yet.... I am getting there though!) Anyway, I am not an affiliate, I am not making money for telling you this. It is just the best player that I have found but more so is the support and ease of use on the site. You can literally go to their code section and just input the name of your video and where it is located (server) and it will create the code for you. Plus, once you get the hang of it you will be able to start customizing your player and preferences and pretty much get anything you want out of your streaming video. Here is a good flv converter for free as well... http://www.koyotesoft.com IF you need more help let me know and I will do my best! Peace, Jai www.IamHomeBusiness.com Multimedia, Video, & Audio Production That Home Business Owners Can Afford!!
upload the video on youtube, and place its code on your website. This way it helps in saving the bandiwdth of your web space hosting