Skip to main content
Known Participant
March 19, 2010
Question

how to start broadcasting

  • March 19, 2010
  • 1 reply
  • 486 views

When user first time log into site camera start the capturing and stream is saved in application folder with the streamname(straemname.flv). then user logout and then logged in then i have to append that stream in same straemname.flv file .By this code i have done that task

camera = Camera.getCamera();

camera.setQuality(0,80);  
camera.setMode(videoWidth,videoheight,15,true);
camera.setLoopback(false);

video.attachCamera(camera);
ns.attachCamera(camera);
ns.publish(stream, "append");     

But i am facing the problem when user again logged in ,the video which is saved previously start playing,I dont want start that video.I just want to show camera control

How to solve that issue.

    This topic has been closed for replies.

    1 reply

    March 19, 2010

    You need to handle that on the subscribing client (the .swf that plays the video). Using the NetStream.play method. Set the start time flag to -1.

    myNS.play("someStream", -1, -1);