quicktime streaming from a webcam

Discussion in 'Mac Apps and Mac App Store' started by mrjamin, Aug 29, 2003.

  1. mrjamin macrumors 65816


    Feb 6, 2003

    Been a while since i've been on the boards - been away - how's everybody been?

    Anyway, down to business.

    I'm making a website for a friend who runs his own internet radio station through live365.com (top banana radio - very amusing). The friend is Paul Burton, who's name may ring a few bells to any delirious fans ;)

    Anyway, i was wondering how you'd go about setting up a streaming webcam? The server i'm hosting on uses Redhat (Apache 1.3.28 for the webserver) and has Darwin Streaming Server Technology, which i have no idea how to use. Paul's running the show off a 12" powerbook, but has a G4 700 running OS9 next to it, using the same DSL connection. The webcam is a bog standard USB webcam that will run in OS9, and will also work in OSX with a bit of tweaking.

    So any ideas? My last resort would be to use an app that saves a pic from the webcam every x seconds to ~/Sites, which is then requested from the powerbook by the remote server via port 80 (personal web sharing/apache)(so the img tag would look like <img src=>). I've used this method for my own webcam and it works a treat. Piece of advice for anyone using this method, or wanting to use it: use php to add a timestamp as a querystring to the image url (i.e. webcam.jpg?<?=time(); ?>) to avoid annoying browser caching.

    Streaming would be cool, but my option will do i guess.
  2. mnkeybsness macrumors 68030


    Jun 25, 2001
    Moneyapolis, Minnesota
    i'm not sure of an answer to your question, as i am out of the OS 9 loop :D

    but another way to disallow caching and allow to refresh every X seconds is with html META tags. i use the following:

    <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT"> 
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
    the refresh number is in seconds.

    the expiration is actually a little fudging for windows IE and a few other browsers to keep it always refreshing as long as the page is open, as some browsers like to stop refreshing after some time.

    and the last is to keep the browser from caching.

    just put the META tags within the <head> and </head> of your page.
  3. mrjamin thread starter macrumors 65816


    Feb 6, 2003
    yeah, but internet explorer, what a fantastic browser (not) ignores all that. Believe me - it stumped me for ages.

Share This Page