PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 300,466 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,702 people online right now. Registration is fast and FREE... Join Now!




PHP Video Streaming

 

PHP Video Streaming

young2daniel

19 Dec, 2008 - 01:51 AM
Post #1

New D.I.C Head
*

Joined: 29 Dec, 2007
Posts: 25


My Contributions
i'm designing a web video chat application using dreamweaver (php). i've already created the interface of the application, but i got stuck. i don't have the codes to use the webcam resource on my system. can anyone please help me. Thanks.

Here are the codes for the interface:
CODE

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>IP Conferencing</title>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
background-image: url(pics/bg.gif);
}
.header-text {
background-color: #330000;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: large;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: small-caps;
color: #FFFFFF;
text-decoration: blink;
border: 3px dashed #FFFFFF;
letter-spacing: normal;
text-align: center;
vertical-align: middle;
}
.textfield {
text-align: center;
overflow: hidden;
visibility: visible;
font-family: "Courier New", Courier, monospace;
font-size: large;
font-style: normal;
font-weight: normal;
font-variant: normal;
color: #FFFFFF;
background-color: #000000;
background-repeat: no-repeat;
width: 353px;
left: 222px;
top: 485px;
height: 52px;
position: static;
letter-spacing: normal;
vertical-align: middle;
word-spacing: normal;
white-space: normal;
text-decoration: underline;
}
.style1 {background-color: #330000; background-attachment: fixed; background-repeat: no-repeat; background-position: center center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-large; font-style: normal; line-height: normal; font-weight: normal; font-variant: small-caps; color: #FFFFFF; text-decoration: blink; border: 3px dashed #FFFFFF; letter-spacing: normal; text-align: center; vertical-align: middle; }
-->
</style>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
</head>

<body onload="MM_CheckFlashVersion('6,0,79,0','Content on this page requires a newer version of Macromedia Flash Player. Do you want to download it now?');">
<form id="form1" name="form1" method="post" action="">
<table width="717" height="640" border="1" align="center">
<tr>
<td height="55" colspan="2" bordercolor="#000000" class="style1"><marquee behavior="alternate"> Video Conferencing </marquee></td>
</tr>
<tr>
<td width="273" rowspan="3" bordercolor="#000000" bgcolor="#330000">&nbsp;</td>
</tr>
<tr>
<td height="113" bordercolor="#000000" bgcolor="#330000">&nbsp;</td>
</tr>
<tr>
<td height="54" bordercolor="#000000" bgcolor="#FFFFFF"><label>
<span class="header-text">ChatBox:</span>
<input name="chatbox" type="text" size = "70"/>
</label></td>
</tr>
</table>
</form>
</body>
</html>


User is offlineProfile CardPM
+Quote Post


roskov

RE: PHP Video Streaming

19 Dec, 2008 - 02:33 AM
Post #2

New D.I.C Head
*

Joined: 19 Dec, 2008
Posts: 3

I think, it doesn't depend on PHP... It mostly connected to Flash Streaming.. nope?
User is offlineProfile CardPM
+Quote Post

young2daniel

RE: PHP Video Streaming

25 Dec, 2008 - 11:49 AM
Post #3

New D.I.C Head
*

Joined: 29 Dec, 2007
Posts: 25


My Contributions
so how do i make flash stream from the webcam on my system?
Thanks.
User is offlineProfile CardPM
+Quote Post

mavrck

RE: PHP Video Streaming

25 Dec, 2008 - 12:14 PM
Post #4

New D.I.C Head
*

Joined: 23 Dec, 2008
Posts: 14



Thanked: 2 times
My Contributions
The most straight forward way would be to use a third party service, such as ustream (http://ustream.tv). Once you're broadcasting, you can embed their code siplet to include the video (and chat if desired) into your page.
User is offlineProfile CardPM
+Quote Post

~NJ

RE: PHP Video Streaming

25 Dec, 2008 - 01:39 PM
Post #5

D.I.C Head
Group Icon

Joined: 22 Dec, 2008
Posts: 52



Thanked: 8 times
Dream Kudos: 25
My Contributions
Flash has direct libraries which can interact with a webcam on someone's system.

I remember some functions in Actionscript that would access the camera directly via camera.get but it's been a while since I've used Flash so I can't really help you in that area.
User is offlineProfile CardPM
+Quote Post

young2daniel

RE: PHP Video Streaming

28 Dec, 2008 - 01:17 PM
Post #6

New D.I.C Head
*

Joined: 29 Dec, 2007
Posts: 25


My Contributions
QUOTE(~NJ @ 25 Dec, 2008 - 01:39 PM) *

Flash has direct libraries which can interact with a webcam on someone's system.

I remember some functions in Actionscript that would access the camera directly via camera.get but it's been a while since I've used Flash so I can't really help you in that area.


so how do i do dat?
can someone please tell me wat 2 do? i need d codes to enable me stream from d webcam on my system.
Thanks.
User is offlineProfile CardPM
+Quote Post

Rechocto

RE: PHP Video Streaming

5 Jan, 2009 - 12:59 AM
Post #7

D.I.C Head
**

Joined: 4 Jan, 2009
Posts: 50


My Contributions
you can make a quick server in Vb or the like to work with your webcam and broadcast, and make a quick swf to connect and display the images as the server sends them..
User is offlineProfile CardPM
+Quote Post

akozlik

RE: PHP Video Streaming

6 Jan, 2009 - 08:00 AM
Post #8

D.I.C Addict
Group Icon

Joined: 25 Feb, 2008
Posts: 774



Thanked: 38 times
Dream Kudos: 800
My Contributions
IPB Image

It depends on what you're trying to do with the webcam. Without knowing that, it's difficult to tell what course of action you should take. Try doing some more research online and looking through other people's code.

Also, nobody will write your code for you, so simply asking someone to do so won't get you a helpful response. We need to see some effort on your part.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:35AM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month