Skip to main content
December 9, 2010
Question

Streaming live webcam feed to website - what is the problem ?

  • December 9, 2010
  • 1 reply
  • 1305 views

Ok, first of all hello everyone - i searched this on the forum and come up with couple of solutions which i already did so hopefully someone can answer my question.

I have installed flash media server, flash cs5, media live encoder to be able to view my webcam feed via my website. Now in addition to these, i started streaming to localhost, and installed a dns updater which updates a name server according to my current ip. Then i wrote this dns address in the feed's source from flash 5 as rtmp://thednsname.somedns.net/live/livestream

so far so good, i also forwarded the ports 1935 incoming and outgoing from modem to my computer as well (because 1935 is said to be the default port number for media server). firewall -> closed (just in case); and my internet provider doesn't block ports...

started the media server (with admin privilage in 7), started the live encoder, connect to localhost, start live feed.

NetStream.Play.StreamNotFound : Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found.

I DONT get this error, which means it finds a stream but on the website there is absolutely nothing. Any ideas will be much appreciated, i think i'm running out of steam here...

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    December 9, 2010

    If I am not wrong, you said that you are publishing a livestream and wanted to see the "NetStream.Play.StreamNotFound : " error on client-side whenever you fail to play a stream, right? so, basically it depends upon what value of the argument "starttime" are you using in your netstream.play call @ client side code, as it follows that:

    startTime - A number indicating the playback start time, in seconds. If no value is specified, the value is -2. If startTime is -2, the server tries to play a live stream with the name specified in streamName . If no live stream is available, the server tries to play a recorded stream with the name specified in
    streamName . If no recorded stream is found, the server creates a live stream with the name specified in streamName and waits for someone to publish to that stream. If startTime is -1, the server attempts to play a live stream with the name specified in streamName and waits for a publisher if no specified live stream is available. If startTime is greater than or equal to 0, the server plays the recorded stream with the name specified in streamName , starting from the time given. If no recorded stream is found, the play() method is ignored. If a negative value other than -1 is specified, the server interprets it as -2. This parameter is optional.

    This also means, you will get "NetStream.Play.StreamNotFound : " error on client-side if you are using 0 because in that case it will directly look for a recorded video file with the given name and will not wait for publisher to publish a livestream with that name and therefore will immediately return the string error "NetStream.Play.StreamNotFound : ".

    Please let me know if it answers your query.