Embedded video

posted in General

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? reply

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) reply


There is no need to use PHP to embed video on web page. HTML code or SWFObject javascript code can solve this. It is recommended to use SWFObject.
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

<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');

' reply


Post Your Answer

Your reply
Your name

or log in

By submitting this form you agree to our posting rules,
privacy policy and our disclaimer.