Solved

streaming real time web cam with flash media server

Posted on 2007-04-01
3
242 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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. …
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now