I’m making a site in .php and I was wondering if it’s possible to embed a video? The video is hosted on the site itself so I can’t just use Youtube’s pre-set stuff. What is the code for embedding video’s in .php?
I’ll first say I don’t know much about coding, and less about server and hosting.
I’m presuming you mean streaming flv video. You’ll probably need some flash code. (for the playback window)
If you’re streaming something else like mov here’s some html stuff
http://www.washington.edu/computing/web/streaming/quicktime.html
If it’s wmv, I think you can run windows media server (part of IIS - look under add/remove program, add/remove windows components in windows 2000 server and up)
<script type=“text/javascript” src=“swfobject.js”></script>
<div id=“flashcontent”>Player will show here</div>
<script type=“text/javascript”>
var so = new SWFObject('mwplayer.swf','player','500','450','9');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.write(“flashcontent”);
</script>