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

Feedback


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');
so.addParam('wmode','opaque');
so.addParam('quality','high');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.write(“flashcontent”);
</script>

' reply

Feedback


Post Your Answer

Topic
Your reply
Your name

or log in
Verify you're human

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