i need help, total newb here :)

Reply

Join Date: Nov 2005
Posts: 3
Reputation: terence sharp is an unknown quantity at this point 
Solved Threads: 0
terence sharp terence sharp is offline Offline
Newbie Poster

i need help, total newb here :)

 
0
  #1
Nov 30th, 2005
ok so i need a simple php script, i will give credit to anyone who helps

---------
cam.php?camera_ip=192.168.2.115

when page loads it loads a windows media player applet thing viewing the media stream at 192.168.2.115

and if its changed to cam.php?camera_ip=192.168.2.169
then it views stream at 192.168.2.169

i need some full working code, i have tried learning php , but i still suck :cry:
:cheesy:
any help will be appreciated and will get credit :eek:
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 902
Reputation: chrisbliss18 is an unknown quantity at this point 
Solved Threads: 23
chrisbliss18's Avatar
chrisbliss18 chrisbliss18 is offline Offline
Posting Shark

Re: i need help, total newb here :)

 
0
  #2
Nov 30th, 2005
So... You want all the code to do the entire project? That's a tall order.

What kind of streams are you working with? How do you access them currently?
Did we help you? Did we miss the point entirely? Update your thread and let us know.
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 3
Reputation: terence sharp is an unknown quantity at this point 
Solved Threads: 0
terence sharp terence sharp is offline Offline
Newbie Poster

Re: i need help, total newb here :)

 
0
  #3
Nov 30th, 2005
Originally Posted by chrisbliss18
So... You want all the code to do the entire project? That's a tall order.

What kind of streams are you working with? How do you access them currently?
well at the moment i simply have a html page with a wmp applet with the "src=" tag located to 192.168.2.115:8080 but this is for a multi cam thing where i can just add links to the database, if you understand?

like a page of links with each link being cam.php?ip=<ip of cam stream here>

this will save LOADS of time making loads of html pages for every camera

all i need is the code for cam.php, i can handle the intergration into the style
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 902
Reputation: chrisbliss18 is an unknown quantity at this point 
Solved Threads: 23
chrisbliss18's Avatar
chrisbliss18 chrisbliss18 is offline Offline
Posting Shark

Re: i need help, total newb here :)

 
0
  #4
Nov 30th, 2005
The original code was:
  1. <object width="350" height="350" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1">
  2. <param name="Filename" value="<?php print $stream_address; ?>">
  3. <param name="AutoStart" value="True">
  4. <param name="ShowControls" value="True">
  5. <param name="ShowStatusBar" value="True">
  6. <param name="ShowDisplay" value="False">
  7. <param name="AutoRewind" value="True">
  8. <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="350" height="350" src="<?php print $stream_address; ?>" filename="<?php print $stream_address; ?>" autostart="True" showcontrols="True" showstatusbar="True" showdisplay="False" autorewind="True"></embed>
  9. </object>
This was fixed to produce:
  1. <object width="350" height="350" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="mediaplayer1">
  2. <param name="Filename" value="<?php print $_GET['stream_address']; ?>">
  3. <param name="AutoStart" value="True">
  4. <param name="ShowControls" value="True">
  5. <param name="ShowStatusBar" value="True">
  6. <param name="ShowDisplay" value="False">
  7. <param name="AutoRewind" value="True">
  8. <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="350" height="350" src="<?php print $_GET['stream_address']; ?>" filename="<?php print $_GET['stream_address']; ?>" autostart="True" showcontrols="True" showstatusbar="True" showdisplay="False" autorewind="True"></embed>
  9. </object>
Did we help you? Did we miss the point entirely? Update your thread and let us know.
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC