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
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)
You can use playerdiy.com, it is a quick solution to embed video to web page using swfobject. Here is the tutorial and code - http://www.playerdiy.com/support/tutorial/customize-flash-video-player.html
<div id=“flashcontent”>Player will show here</div>
var so = new SWFObject('mwplayer.swf','player','500','450','9');