Skip to main content
Participating Frequently
May 29, 2009
Question

Live netstream not working, - StreamNotFound - pbm

  • May 29, 2009
  • 1 reply
  • 803 views

Hi fmshers,

I have created a live video chat, So I just start my work with this reference.

But my publish netstream working well, But play the live netstream trace the streamnotfound message. why this happened But working good in local, (Sorry for my english).

My code is here,


mycam = Camera.get();
mycam_audio = Microphone.get();


mycam.setMode(320,240,30);
mycam.setQuality(132845,0);


cam_feed.attachVideo(mycam);
cam_feed.attachAudio(mycam_audio);


client_nc = new NetConnection();
client_nc.connect("rtmp:/simplechat");//Just try with ur FMS account
cam_ns = new NetStream(client_nc);


cam_ns.attachVideo(mycam);
cam_ns.attachAudio(mycam_audio);
live_feed.attachVideo(in_ns);
live_feed.attachAudio(in_ns);
cam_ns.publish("user_1","live");
//in_ns.play("user_1","live");
in_ns.onStatus = function(info) {
    trace("Status="+this.status+this+info.code);
};


in_ns = new NetStream(_root.client_nc);
in_ns.play("user_1","live");


this.onEnterFrame = function() {
    ss.text = in_ns.currentFps;
    dd.text = cam_ns.currentFps;
};


Hope you one genious help me.....

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 30, 2009

    Sorry for the Bump.....

    I need the solution immediately So Please trying one. let me know if wanna brief...

    Thanks.......

    June 1, 2009

    I see two potential issues:

    Your syntax for NetStream.play is incorrect. This line:

    in_ns.play("user_1","live");

    should be

    in_ns.play("user_1",-1, -1);

    Also, you should wait for the status event from the netconnection before you connect to the stream.