Detecting if a live webcam is actually streaming

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default Detecting if a live webcam is actually streaming

    I built a live webcam broadcaster and receiver using my Flashcom server and
    [url]http://www.macromedia.com/devnet/flashcom/articles/broadcast_receiver.html[/url].

    The webcam works fine. But I am having trouble detecting if a live video
    stream is actually playing from my flashcom server. I am using the netstream
    onstatus handler to check for "NetStream.Play.Start."

    The problem is, even if the stream is not playing, or I enter garbage into
    ns.play() I still get "Netstream.Play.Start" from the handler as long as there
    is a valid net connection.

    I want to show my users alternate content if the stream is not actually live.
    Right now users just see a blank area if the stream is down.

    Is there some other way to know if a stream is actually live from the flashcom
    server? Perhaps there is some server code that I need?


    Thanks!


    slongbons Guest

  2. Similar Questions and Discussions

    1. Broadcast Live Webcam to public website
      I am looking for some support information on setting up a webcam for my restaurant. I have Flash Media Encoder working fine on the local machine...
    2. viewing live video from webcam with FMS
      Hi, I wrote the following code to view a live streaming from my webcam with FMS installed and started : import flash.media.Camera; import...
    3. Live webcam stream with FMS!
      I've been trying to stream my webcam so i can view it on my website. I'am using Flash Media Server and I have created both my broadcaster...
    4. FMS Newby - Live webcam
      Hello everybody, I'm newby in Flash Media Server, so understand mi ignorance, please. I need to do an aplication with two parts: 1. Live...
    5. Webcam streaming - seperate pages?
      Hi all, I am a newbie in the Flash scene, but i have several years experince with VBScript, Jscript, JavaScript etc. I am trying to develop a...
  3. #2

    Default Re: Detecting if a live webcam is actually streaming

    There's a couple of ways to do it. I like to check the FPS of the video. If the FPS is zero for more than two seconds, then no video is playing.
    JayCharles Guest

  4. #3

    Default Re: Detecting if a live webcam is actually streaming

    Argh, I should have thought of that. Works great though. Thank you very much for the response.
    slongbons Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139