Solved

streaming real time web cam with flash media server

Posted on 2007-04-01
3
247 Views
Last Modified: 2008-02-01
Hi,

I am trying to stream my web cam with Flash Media serer and I am having some problems getting it to work.

First of all I have this code in a swf on the web that shows my own web cam in real time.

client_nc = new NetConnection();
client_nc.connect("rtmp://rtmphost.com/testStream/main.asc");

mycam = Camera.get();
mycam.setMode(160,120,15);
mycam.setQuality(20000,0);
my_video.attachVideo(mycam);

output = new NetStream(client_nc);
output.attachVideo(mycam);
output.publish("livevideofile", "live");

in_ns = new NetStream(client_nc);
in_ns.receiveVideo();
in_ns.play("livevideofile");
Replay_video.attachVideo(in_ns);
stop();

The above code works fine but I do not understand how I am supposed to send this siganal to the flash media server and then view it from another computer. I may allreeady be sending the singnal tio the server but how do I view it from another swf?

Thanks,

waffe

Even some good links to tutorials would probably do the trick...
0
Comment
Question by:waffe
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 150 total points
ID: 18834283
other swf need only following code to playback reatime video:

---------------------------------------
client_nc = new NetConnection();
client_nc.connect("rtmp://rtmphost.com/testStream/main.asc");

in_ns = new NetStream(client_nc);
in_ns.receiveVideo();
in_ns.play("livevideofile");
Replay_video.attachVideo(in_ns);
stop();

--------------------------------------

- Aneesh Chopra
0
 

Author Comment

by:waffe
ID: 18834426
ok great - but I don't see anything yet. Do I need a video playback component on the stage?
0
 

Author Comment

by:waffe
ID: 18834751
well none of that code above works - so for the next guy use this link

http://www.influxis.com/flashcom_mboard/topic.asp?TOPIC_ID=163

waffe
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question