Solved

streaming real time web cam with flash media server

Posted on 2007-04-01
3
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

710 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